Closed
Bug 57360
Opened 24 years ago
Closed 24 years ago
RDF content sink generates incorrect resource URIs
Categories
(Core Graveyard :: RDF, defect, P3)
Core Graveyard
RDF
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla0.9
People
(Reporter: waterson, Assigned: waterson)
Details
Attachments
(3 files)
3.11 KB,
patch
|
Details | Diff | Splinter Review | |
1.52 KB,
text/rdf
|
Details | |
1.37 KB,
text/xul
|
Details |
If the RDF content sink loads an RDF/XML file from a URL that contains UTF-8 characters, or if any of the "ID" or "about" attributes in the file contain non-ASCII characters, it will generate an incorrect graph. In the former case, it will incorrectly treat the UTF-8 encoded URL as ASCII. In the latter case, it will (apparently, by design) just ignore the ID or about attribute altogether an "make one up". (What was I thinking?) I'll attach a patch that fixes these issues. I discovered them while trying to debug some other random I18n bug.
Assignee | ||
Updated•24 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9
Assignee | ||
Comment 1•24 years ago
|
||
Assignee | ||
Comment 2•24 years ago
|
||
Assignee | ||
Comment 3•24 years ago
|
||
Assignee | ||
Comment 4•24 years ago
|
||
To test the latter problem, 1. Click on the "sample XUL file that uses I18n-ish RDF/XML" attachment. 2. Wait a second or two for the RDF/XML to load. 3. You should see a table with two rows; if the first row says "Introduction to JavaScript" then the bug is fixed. I don't have a test case for the former problem. :-(
Assignee | ||
Comment 5•24 years ago
|
||
nhotta, momoi: another data point for I18n-lame RDF. Found this last night while working on that other AIM bug.
Comment 6•24 years ago
|
||
Looks dandy, r=rjc
Comment 7•24 years ago
|
||
Does your fix assume that RDF documents are always in UTF-8?
Assignee | ||
Comment 8•24 years ago
|
||
No. It assumes that by the time the document has reached the content sink, it has been promoted to UCS-2 from whatever character set encoding it was originally provided in. But, it *does* assume that the document's base URL is encoded in UTF-8. This is what we do now with all document, IIRC.
Comment 9•24 years ago
|
||
simple enough, sr=alecf
Assignee | ||
Comment 10•24 years ago
|
||
fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Comment 11•23 years ago
|
||
verified: 6/27/01 builds winNT 4, Linux rh6, Mac os9
Status: RESOLVED → VERIFIED
Updated•6 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•