Closed Bug 367074 Opened 19 years ago Closed 2 years ago

application/http-index-format interpretation is affected by the way of retrieval

Categories

(Core :: General, defect)

defect

Tracking

()

RESOLVED INVALID

People

(Reporter: toni.ruottu, Unassigned)

References

()

Details

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a2pre) Gecko/20070115 Minefield/3.0a2pre Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a2pre) Gecko/20070115 Minefield/3.0a2pre An application/http-index-format file created by Firefox on the basis of a gopher directory file listing behaves differently, if I save the source code and retrieve the file from a http-server. Reproducible: Always Steps to Reproduce: 1. Visit gopher://athene.dnsalias.org/ 2. Look at the web page source code and copy/paste it into a file 3. Configure a web server to send that file on request with the mime-type application/http-index-format Actual Results: Firefox concatenated gopher urls in the directory with the url application/http-index-format -file was retrieved from. After this the files in the directory had urls of form http://webser.com/dir/gopher://gopherserver.com/dir2/file Expected Results: Firefox should have worked consistently disregarding technology used to retrieve the application/http-index-format -file. I ran into this bug while trying to create a stream converter to convert application/gnunet-directory -files to application/http-index-format -file. Once complete it would have allowed Firefox to show GNUnet-directories in a similar fashion to gopher, http, ftp, etc... -directories. Urls of files in a GNUnet directory don't relate in anyway to the url used to retrieve the directory. Thus, support for specifying absolute urls for the files is a requirement for this. The GNUnet directory file itself can be retrieved in many ways ( http://, gnunet://, etc. ). The way of retrieving should not affect the interpretation of the directory. I believe these requirements are common to other directory types than GNUnet directories. They are just the special case I'm familiar with.
Confirming. URIs get joined with a slash in between instead of proper URI and URI-ref processing taking place.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Henri: please don't confirm core bugs in Firefox::General. If I understand this correctly, I think this is a bug in nsDirectoryViewer.cpp.
Product: Firefox → Core
QA Contact: general → general
Version: unspecified → Trunk
It seems to me this bug and Bug 367076 is a stream converter bug. ->Necko? In my opinion, this is just a RFE while Bug 367076 is a real bug. The spec says it's a *file-name*, not a URL. But anyway we need a bit better URI resolving. For example, Base URL: <http://www.example.org/?foo> Relative URL: <bar.html> generates <http://www.example.org/?foo/bar.html> This is something problematic, indeed.
Severity: normal → S3

Gopher is no longer supported (bug 388195)

Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.