Closed Bug 9280 Opened 26 years ago Closed 25 years ago

Problems with relative URI's in RDF serialization

Categories

(Core Graveyard :: RDF, defect, P3)

x86
Linux
defect

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: dbaron, Assigned: waterson)

References

Details

I was getting very ugly things in RDF output like: <RDF:li resource="file:///home/david/mozilla/david/appts.rdf#appt1"/> when I really just would want <RDF:li resource="#appt1"/> and I looked at the serialization code to see whether there was an attempt to do what I wanted, and found there was. However, it isn't working for me right now, I think because the 4 calls to mInner->GetURI() in nsRDFXMLDataSource.cpp are returning null, so rdf_MakeRelativeRef wasn't doing much. Changing "mInner->GetURI" to "GetURI" worked for me, but I don't know if that's the 'right' way to fix this, or if this is a problem on platforms other than Linux, etc., etc.: 1199c1199 < mInner->GetURI(getter_Copies(docURI)); --- > GetURI(getter_Copies(docURI)); 1291c1291 < rv = mInner->GetURI(getter_Copies(docURI)); --- > rv = GetURI(getter_Copies(docURI)); 1343c1343 < mInner->GetURI(getter_Copies(docURI)); --- > GetURI(getter_Copies(docURI)); 1426c1426 < mInner->GetURI( getter_Copies(docURI) ); --- > GetURI( getter_Copies(docURI) );
FYI, you can use the test case from bug 9236, if you need one. I'm seeing it there, too.
Status: NEW → ASSIGNED
Target Milestone: M8
Yes, this is absolutely the right thing to do. This is fallout from my sloppy conversion to new APIs. I'll check these diffs in as soon as the tree opens.
Target Milestone: M8 → M9
Partial fix (what you suggested -- more or less) is checked in. There are still some URL resolution snafus that I'll defer until M9 and the new URL resolution code. Leaving bug open, setting TM to M9.
Blocks: 11414
Move to M10.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Marking fixed. Please scream if it's not.
QA Contact massive update.
Status: RESOLVED → VERIFIED
This has been working for ages. I'm not sure what the cases were for which you left it open when you fixed it, but I'm marking verified.
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.