Closed Bug 78013 Opened 24 years ago Closed 23 years ago

eliminate nsFileSpec usage from nsRDFXMLDataSource

Categories

(Core Graveyard :: RDF, defect, P4)

defect

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.0.1

People

(Reporter: waterson, Assigned: waterson)

References

Details

Attachments

(3 files)

I did this a while ago. The diffs are rotting in my tree.
Blocks: 38122
Status: NEW → ASSIGNED
Priority: -- → P4
Target Milestone: --- → mozilla0.9.1
The above patch: - renames mURLSpec to mOriginalURLSpec, to make its purpose a bit more clear - Uses nsIFile and friends instead of nsFileSpec to write the RDF/XML back to disk. dougt or darin, could you r=? shaver, sr=?
Keywords: patch
Keywords: donttest
r=dougt
+ // Is it a file? If so, we can write to it. Some day, it'd be nice + // if we didn't care what kind of stream this was... Hasn't that day come? You can write to an FTP URL and it'll upload, at least. Dougt? Darin? Can mOriginalURLSpec be an nsXPIDLCString?
shaver, that day has not come yet. It really has not been a high priority :-(
shaver: what dougt said. I talked at length with darin about this; his belief is that there needs to be a layer above the channel that would provide a ``virtual file system'', and normalize read/write operations across protocols. This code predated nsXPIDLCString, and should probably be ready for the bright day when scc eliminates nsXPIDLCString and its ilk. I changed mOriginalURLSpec from a bare |char*| to an nsCString.
fix checked in
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
reopened, this introduced bug 78718. I've backed this patch out.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Ok, I'll try again later!
Status: REOPENED → ASSIGNED
Depends on: 78718
Target Milestone: mozilla0.9.1 → mozilla0.9.2
Target Milestone: mozilla0.9.2 → mozilla1.0
bug 36972 may be a very old dup (vice-versa, rather), but since there appear to be a couple instances of nsIFileSpec in /rdf/ not covered by the patch (eg nsFileSystemDataSource), marking a dependency instead.
Blocks: 36972
Most of the string changes in the original patch went in for a different bug, so for fun I boiled down the last patch into just the nsFileSpec change and tried it out. After applying it, I can't reproduce any of the symptoms described in bug 78718. Very strange.
Bugs targeted at mozilla1.0 without the mozilla1.0 keyword moved to mozilla1.0.1 (you can query for this string to delete spam or retrieve the list of bugs I've moved)
Target Milestone: mozilla1.0 → mozilla1.0.1
Blocks: 113894
Comment on attachment 51711 [details] [diff] [review] boiled-down version of waterson's patch I've been testing with r=rjc
Attachment #51711 - Flags: review+
Comment on attachment 51711 [details] [diff] [review] boiled-down version of waterson's patch I've been testing with sr=waterson
Attachment #51711 - Flags: superreview+
you should really consider using a buffered output stream overtop the file output stream. see NS_NewBufferedOutputStream in nsIFileStreams.idl
I checked in tingley's patch as it was needed for other bugs (113894, for example). Marking bug fixed.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago23 years ago
Resolution: --- → FIXED
tever is not RDF QA anymore
QA Contact: tever → nobody
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: