Closed
Bug 78013
Opened 24 years ago
Closed 23 years ago
eliminate nsFileSpec usage from nsRDFXMLDataSource
Categories
(Core Graveyard :: RDF, defect, P4)
Core Graveyard
RDF
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.0.1
People
(Reporter: waterson, Assigned: waterson)
References
Details
Attachments
(3 files)
7.27 KB,
patch
|
Details | Diff | Splinter Review | |
7.89 KB,
patch
|
Details | Diff | Splinter Review | |
1.65 KB,
patch
|
mozilla
:
review+
waterson
:
superreview+
|
Details | Diff | Splinter Review |
I did this a while ago. The diffs are rotting in my tree.
Assignee | ||
Updated•24 years ago
|
Assignee | ||
Comment 1•24 years ago
|
||
Assignee | ||
Comment 2•24 years ago
|
||
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=?
Comment 3•24 years ago
|
||
r=dougt
Comment 4•24 years ago
|
||
+ // 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?
Comment 5•24 years ago
|
||
shaver, that day has not come yet. It really has not been a high priority :-(
Assignee | ||
Comment 6•24 years ago
|
||
Assignee | ||
Comment 7•24 years ago
|
||
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.
Assignee | ||
Comment 8•24 years ago
|
||
fix checked in
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Comment 9•24 years ago
|
||
reopened, this introduced bug 78718. I've backed this patch out.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 10•24 years ago
|
||
Ok, I'll try again later!
Assignee | ||
Updated•24 years ago
|
Target Milestone: mozilla0.9.2 → mozilla1.0
Comment 11•24 years ago
|
||
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
Comment 12•23 years ago
|
||
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.
Comment 13•23 years ago
|
||
Comment 14•23 years ago
|
||
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
Comment 15•23 years ago
|
||
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+
Assignee | ||
Comment 16•23 years ago
|
||
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+
Comment 17•23 years ago
|
||
you should really consider using a buffered output stream overtop the file
output stream. see NS_NewBufferedOutputStream in nsIFileStreams.idl
Comment 18•23 years ago
|
||
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 ago → 23 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•