Closed Bug 1461 Opened 26 years ago Closed 25 years ago

URL: need to use correct base w/ relative URLS

Categories

(Core :: Networking, defect, P1)

All
Windows NT
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: pnunn, Assigned: nisheeth_mozilla)

References

()

Details

(Keywords: testcase)

Troy:
I'm not sure who should get this, but I know you will know.
The parsing for the url is not handling the default index.html
file properly if the slash after the last directory is omitted.

I have a simple html index page, with only an <img> tag on it.
It displays properly if the URL ends with a slash, but displays
a broken image if the slash is omitted.

ok:   http://www.best.com/~pnunn/
not ok: http://www.best.com/~pnunn

In 4.0x&Gromit versions, the url is completed with an additional '/'
so that it does the correct thing.

In xpviewer, the image url is misunderstood to be
http://www.best.com/pn_port1.jpg rather than
http://www.best.com/~pnunn/pn_port1.jpg.

In debugging, if you break as soon as an
image is requested will show a content-type of text/html since the
data stream is actually a 404 html.
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → WORKSFORME
Pam, it works fine for me. I'm using the NGLayout "viewer". Are you using the
viewer or the xpfe?
I'm looking at xpviewer.exe.
I've tried the bits released by sar, as well as my debug build.

If it doesn't break the first time around, go to another url and
then back. Once I do that, I can see the image or an error icon just
by adding or deleting a slash on the url.

If you still have trouble, I'll drop by.
Status: RESOLVED → REOPENED
Yeah, I saw it happen when I went to a different page and then went Back
Summary: JPG Image Doesn't display
Assignee: troy → rpotts
Status: REOPENED → NEW
Resolution: WORKSFORME → ---
I guess the problem is in URLImpl which is called by NS_MakeAbsoluteURL.
If there's no trailing '/' then the final is resolved as
http://www.best.com/pn_port1.jpg instead of ...best.com/~pnunn/pn_port1.jpg
Summary: JPG Image Doesn't display → ss:JPG Image Doesn't display
Putting on ss: radar
This is a dup.  Anyone, know the bug #.
Summary: ss:JPG Image Doesn't display → rn:JPG Image Doesn't display
Taking off ss: list per bug mtg today.  Will Release Note.  Dup of 1356?
Summary: rn:JPG Image Doesn't display → JPG Image Doesn't display
This now in Release Notes.  Taking off rn: radar.
Assignee: rpotts → gagan
Re-assigned to gagan@netscape.com.

Gagan, is this a netlib bug?  Who should get this?
Status: NEW → ASSIGNED
Setting all current Open/Normal to M4.
setting paulmac as QA contact for all gagan's bugs (sorry for the spam)
Assignee: gagan → nisheeth
Status: ASSIGNED → NEW
Nisheeth can you confirm that this is fixed with your webshell fixes? If not
give it back to me. Thanks!
Status: NEW → RESOLVED
Closed: 26 years ago25 years ago
Resolution: --- → FIXED
Yes, this is fixed.  Pam's page appears fine.
Status: RESOLVED → VERIFIED
Looks good to me also. Marking verified.
Component: Layout → Networking
Keywords: testcase
Summary: JPG Image Doesn't display → URL: need to use correct base w/ relative URLS
You need to log in before you can comment on or make changes to this bug.