Closed
Bug 307347
Opened 19 years ago
Closed 19 years ago
nsSchemaLoader needs to take ns:name into account for ref=""
Categories
(Core Graveyard :: Web Services, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: doronr, Assigned: doronr)
Details
(Keywords: fixed1.8)
Attachments
(1 file)
|
17.37 KB,
patch
|
peterv
:
review+
peterv
:
superreview+
asa
:
approval1.8b5+
|
Details | Diff | Splinter Review |
There are still several places that use ref="" without taking ns:name into account.
| Assignee | ||
Comment 1•19 years ago
|
||
This fixes all ref="" users.
Attachment #195144 -
Flags: superreview?(peterv)
Comment 2•19 years ago
|
||
Comment on attachment 195144 [details] [diff] [review] patch >Index: extensions/webservices/schema/src/nsSchemaLoader.cpp >=================================================================== >@@ -2809,25 +2791,28 @@ nsSchemaLoader::ProcessAttribute(nsIWebS >+ nsresult rv = ParseNameAndNS(ref, aElement, ref, refNS); Don't redeclare rv. >@@ -2911,26 +2896,31 @@ nsSchemaLoader::ProcessAttribute(nsIWebS > nsresult > nsSchemaLoader::ProcessAttributeGroup(nsIWebServiceErrorHandler* aErrorHandler, > nsSchema* aSchema, > nsIDOMElement* aElement, > nsISchemaAttributeGroup** aAttributeGroup) > { > nsresult rv; >+ nsresult rv = ParseNameAndNS(ref, aElement, ref, refNS); Don't redeclare rv. >Index: extensions/webservices/schema/src/nsSchemaParticles.cpp >=================================================================== >@@ -305,21 +306,31 @@ NS_IMETHODIMP >+ // use the namespace and type >+ nsCOMPtr<nsISchemaCollection> schemaColl; >+ mSchema->GetCollection(getter_AddRefs(schemaColl)); >+ NS_ENSURE_STATE(schemaColl); >+ >+ // get the right schema >+ nsCOMPtr<nsISchema> schema; >+ schemaColl->GetSchema(mRefNS, getter_AddRefs(schema)); >+ NS_ENSURE_STATE(schema); >+ >+ schema->GetModelGroupByName(mRef, getter_AddRefs(mModelGroup)); Shortcut to |mSchema->GetModelGroupByName(mRef, getter_AddRefs(mModelGroup));| when mRefNS is empty?
Attachment #195144 -
Flags: superreview?(peterv)
Attachment #195144 -
Flags: superreview+
Attachment #195144 -
Flags: review+
| Assignee | ||
Comment 3•19 years ago
|
||
checked into trunk
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 4•19 years ago
|
||
Comment on attachment 195144 [details] [diff] [review] patch No regressions, asking for 1.8b5, needed for XForms and probably also fixes some broken web services..
Attachment #195144 -
Flags: approval1.8b5?
Comment 5•19 years ago
|
||
Comment on attachment 195144 [details] [diff] [review] patch can you tell us more about the risk here ?
| Assignee | ||
Comment 6•19 years ago
|
||
This code is only used by web services, and I checked existing ones and they still worked. There should be no risk here since this code isn't used a lot.
Updated•19 years ago
|
Attachment #195144 -
Flags: approval1.8b5? → approval1.8b5+
Updated•7 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•