Closed
Bug 338823
Opened 19 years ago
Closed 19 years ago
Validate instance documents on xforms-rebuild
Categories
(Core Graveyard :: XForms, defect, P2)
Core Graveyard
XForms
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: allan, Assigned: allan)
References
()
Details
(Keywords: fixed1.8.0.5, fixed1.8.1)
Attachments
(2 files)
Right now we only call ValidateDocument() on all instance documents on form load. Should we not be doing it for xforms-rebuild too? If not, any new inserted nodes will not have the correct type set I guess.
Assignee | ||
Comment 1•19 years ago
|
||
(In reply to comment #0) > Right now we only call ValidateDocument() on all instance documents on form > load. Should we not be doing it for xforms-rebuild too? > > If not, any new inserted nodes will not have the correct type set I guess. I'm pretty confident that we should do this.
Priority: -- → P2
It sure sounds logical, but how are we going to represent the invalid document to the user? If it is failing due to and instance node missing an attribute, for example, and no one links to that attribute, then what do we do? And even if a control does link to this missing attr then the control won't be there anyhow. I guess we just log the error?
Assignee | ||
Comment 3•19 years ago
|
||
(In reply to comment #2) > It sure sounds logical, but how are we going to represent the invalid document > to the user? If it is failing due to and instance node missing an attribute, > for example, and no one links to that attribute, then what do we do? And even > if a control does link to this missing attr then the control won't be there > anyhow. I guess we just log the error? It's a bit tricky, I agree. Logging the error is also the best I can think of. Problem is that if we do not do it, schema types will not be correct.
Assignee | ||
Comment 4•19 years ago
|
||
This needs to be done for bug 339217 to make sense.
Assignee: doronr → allan
Blocks: 339217
Assignee | ||
Comment 5•19 years ago
|
||
Assignee | ||
Updated•19 years ago
|
Status: NEW → ASSIGNED
Updated•19 years ago
|
Attachment #223784 -
Flags: review?(doronr) → review+
Assignee | ||
Updated•19 years ago
|
Attachment #223784 -
Flags: review?(Olli.Pettay)
Updated•19 years ago
|
Attachment #223784 -
Flags: review?(Olli.Pettay) → review+
Assignee | ||
Comment 7•19 years ago
|
||
Fixed on trunk.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Summary: Validate instance documents on xforms-rebuild? → Validate instance documents on xforms-rebuild
Whiteboard: xf-to-branch
Assignee | ||
Updated•19 years ago
|
Keywords: fixed1.8.0.5
Assignee | ||
Updated•19 years ago
|
Keywords: fixed1.8.1
Assignee | ||
Updated•19 years ago
|
Whiteboard: xf-to-branch
Updated•8 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•