Closed Bug 123991 Opened 23 years ago Closed 9 years ago

rdf:httpindex should not be tied to xul directory viewer

Categories

(Core Graveyard :: Networking: FTP, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX
Future

People

(Reporter: dougt, Unassigned)

References

Details

FTP protocol should not change output based on preference.  Instead there should
be a programmatic way that each ftp channel can have a different output.  

There is a new requirement that a client needs to be able to product a listing
of all files in a directory.  To do this, the client wants to parse
indexed-html.  However, if the preference is set, the client will have no way of
knowing how to parse the output.
dougt: I have about 5 bugs on me because of this, and related code. I was going
to move the html code choice into the channels. I should have a patch later
today for that.

I agree that this is all a hack, but requiring every single consumer who may get
an ftp directory listing back (ie most of them) to change isn't going to work.
What were you proposing to do? See discussion in the related bugs before responding.

Who wants to parse the raw http-index-format, and why? I've always wanted to get
rid of that middle layer entirely - it would make things a _lot_ simpler
thoughout the dir passing code. I even had it working, but valeski wanted to old
stuff kept in.
Bradley could you marked this as a dup?
We need this for Composer's publishing feature. A way of easily enumerating 
files and directories would really help us make a good site viewer/dir picker.
No, this particular request is slightly different. It'll be one patch which
fixes them, though.
over to bbaetz.
Assignee: dougt → bbaetz
OK, I'm going to work on this as part of bug 110760. I spoke to cmanske on IRC,
and being able to use the rdf:httpindex datasource will give him what he needs,
so I'm morphing this. This is dependant on bug 110760, which involves moving the
backend out of libappcomps.

This can already be done, sort of, by creating an HTTPIndex instance directly.
That functionality isn't really exposed, though, and editor shouldn't be
dependant on libappcomps.

This will probably be a streight copy and paste, although it was suggested on
IRC that nsIRemoteRDFDataSource should be implemented, and I'll probably do that.

Taking for 0.9.9, but that may be optimistic, since I start university again
next week, and am likely to be very busy until the tree closes.
Status: NEW → ASSIGNED
Depends on: 110760
Summary: FTP protocol should not change output based on preference → rdf:httpindex should not be tied to xul directory viewer
Target Milestone: --- → mozilla0.9.9
Thank you Bradley! We will be very happy if you can do this work.
->1.0
Target Milestone: mozilla0.9.9 → mozilla1.0
For when I come to do this, can you please point me to the code where you'd like
to hook this in, so that I can try to have a usable set of APIs?
Not needed for 1.0; -> 1.1
Target Milestone: mozilla1.0 → mozilla1.1
cmanske: Is this still wanted in the short term? And if so, can I assign it to
you ;)
No, it's not needed short term. You can keep it!
Target Milestone: mozilla1.1alpha → Future
I have no time to work on mozilla at the moment, so dougt is taking over FTP

open ftp bugs -> him
Assignee: bbaetz → dougt
Status: ASSIGNED → NEW
mass reassigning to nobody.
Assignee: dougt → nobody
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.