Closed Bug 98868 Opened 23 years ago Closed 22 years ago

Questionmark after directory in file URL shows strange directory listing

Categories

(Core :: XUL, defect)

x86
Linux
defect
Not set
trivial

Tracking

()

RESOLVED DUPLICATE of bug 59002
Future

People

(Reporter: hansmann.d, Assigned: dougt)

References

()

Details

(Keywords: verifyme)

From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.3+) Gecko/20010907 BuildID: 2001090723 submit the following form and you get a directory listing where each directory is called as the base ditrectory... <html><body><form action="."><input type=submit></form></body></html> not a serious bug, but probably not the desired behaviour... Reproducible: Always Steps to Reproduce: 1. try the page above 2. 3. Expected Results: provided a correct directory listing or an error-message
One can reproduce this by just taking a file url of the form: file:///path/to/anywhere/? Just click on the URL field of this bug on any Unix (and maybe other as well) system to reproduce. Over to networking:file
Assignee: asa → dougt
Status: UNCONFIRMED → NEW
Component: Browser-General → Networking: File
Ever confirmed: true
QA Contact: doronr → benc
Chris, is form posting yours now?
Assignee: dougt → blizzard
No. Never has been. I suspect it's rpotts, isn't it?
Assignee: blizzard → rpotts
nope... i don't think i own form posting :-) i'll try to find the real owner...
-> form submission Can forms even work off a base of a file URL?
Assignee: rpotts → rods
Component: Networking: File → Form Submission
QA Contact: benc → vladimire
reassinging to new owner of form submission
Assignee: rods → alexsavulov
Summary: form action="." shows weird directory listing → form action="." shows weird directory listing[form sub]
*** Bug 111171 has been marked as a duplicate of this bug. ***
i think is the DocShell setting milestone
Target Milestone: --- → Future
Yes, this has nothing to do with forms. Just type in "file:///?" in the URL bar to see the trouble. The reason this showed up on forms first is the question mark is placed after the "." in the form submit. For example, a form in file:///home/john with action="." and a parameter x=y will submit to "file:///home/john/.?x=y". This only works when the directory before the questionmark is a valid directory. Updating summary and reassigning back to networking:file. It sounds like a URL parsing issue to me, if that helps any.
Assignee: alexsavulov → dougt
Component: Form Submission → Networking: File
QA Contact: vladimire → benc
Summary: form action="." shows weird directory listing[form sub] → Questionmark after directory in file URL shows strange directory listing
File URLs point to flat, static disk space. We have bugs on "?" being in file URLs, as well as "file:///" not working well. I guess what I'm asking is "can you even do a form submission to a file URL"?
-> form submission are you saying that form sumbission does a GET for the file URL? That doesn't make any sense to me.
Component: Networking: File → Form Submission
That's exactly what form submission does, but also see comment 9. I can manually type a url in the location bar that will give a completely garbled directory listing...
Component: Form Submission → Networking: File
That's a dupe. *** This bug has been marked as a duplicate of 59002 ***
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Keywords: verifyme
Component: Networking: File → XP Toolkit/Widgets: Trees
QA Contact: benc → shrir
Component: XP Toolkit/Widgets: Trees → XUL
QA Contact: shrir → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.