Closed
Bug 14899
Opened 27 years ago
Closed 27 years ago
RDF/XML datasource Refresh() sends bad notifications
Categories
(Core Graveyard :: RDF, defect, P1)
Core Graveyard
RDF
Tracking
(Not tracked)
CLOSED
FIXED
M11
People
(Reporter: waterson, Assigned: waterson)
References
Details
Attachments
(2 files)
Refresh() seems to be sending bad updates if the datasource has already been
loaded. I'll work up a test case. This'll cause problems for the sidebar and
flash panel to no end.
| Assignee | ||
Updated•27 years ago
|
Status: NEW → ASSIGNED
Priority: P3 → P1
Target Milestone: M11
| Assignee | ||
Comment 1•27 years ago
|
||
| Assignee | ||
Comment 2•27 years ago
|
||
| Assignee | ||
Comment 3•27 years ago
|
||
To reproduce:
1. Save test case files as 'cust.xul' and 'local-panels.rdf', respectively.
2. Run viewer.
3. Open 'cust.xul' in viewer. You should see an HTML 'select' with four
elements in it.
4. Open a new viewer window (File->New Window)
5. Open 'cust.xul' in the new window.
Expected: see same four entries
Actual: both lists clear!
| Assignee | ||
Updated•27 years ago
|
| Assignee | ||
Comment 4•27 years ago
|
||
oh this is evil. my 'mark and sweep' algorithm is breaking because of RDF
containers, which add assertions that are dependent on the current state of the
graph; e.g., RDF:nextVal.
So, for example, what happens is that you have an RDF container with two
elements in it. You refresh the file. The two elements stream in, and are added
as '3' and '4', instead of being recognized as the same '1' and '2' again.
Since '1' and '2' aren't marked, they get swept. Since sweeping happens after
assertion, the values disappear. UGh.
| Assignee | ||
Comment 5•27 years ago
|
||
Ok, I think I have a good fix for this. I'm changing the semantics of
Make[Bag|Seq|Alt] s.t. each will actually re-initialize an
already-existing container. Doing the usual smoke tests seems to indicate that
nobody is relying on the current fact that Make[Bag|Seq|Alt] is idempotent (is
that the right word?) if the container already exists.
| Assignee | ||
Updated•27 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 27 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 6•27 years ago
|
||
slamm carpooled this in with his sidebar changes.
Updated•26 years ago
|
Status: RESOLVED → CLOSED
Comment 7•26 years ago
|
||
Testcase not working. Discussed with Chris. OK to close.
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
•