Closed Bug 47009 Opened 25 years ago Closed 2 years ago

file: no read permissions should error

Categories

(Core :: Networking: File, defect, P5)

defect

Tracking

()

RESOLVED FIXED
Future
Tracking Status
firefox111 --- ?

People

(Reporter: h.b.furuseth, Unassigned)

References

Details

(Keywords: testcase, Whiteboard: [necko-would-take])

Attachments

(1 file)

From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; SunOS 5.7 sun4u; en-US; m18) Gecko/20000730 BuildID: 2000073010 A file: URL which I have no read access to is displayed as empty. Reproducible: Always Steps to Reproduce: 1. touch /tmp/foo.html 2. chmod a-r /tmp/foo.html 3. visit URL file:///tmp/foo.html Actual Results: An empty browser window. Expected Results: A 'permission denied' error message, maybe the output from strerror(). (don't know where exactly - it ought to be distinct from an accessible file which happens to contain an error message. Maybe put the error message in the title or status bar?) Don't know the correct component for this bug. Maybe "Networking"? See also bug #47007.
Severity: normal → trivial
setting bug status to New. over to Networking.
Assignee: asa → gagan
Status: UNCONFIRMED → NEW
Component: Browser-General → Networking
Ever confirmed: true
QA Contact: doronr → tever
->ruslan
Assignee: gagan → ruslan
Target Milestone: --- → Future
Status: NEW → ASSIGNED
Hi dougt, welcome to necko :)
Assignee: ruslan → dougt
Status: ASSIGNED → NEW
Mitch, are you still owning file:/// url bugs?
Assignee: dougt → mstoltz
Not really my area, but I'll investigate if you want...
Status: NEW → ASSIGNED
This is really a Necko bug, no connection to security.
Assignee: mstoltz → neeti
Status: ASSIGNED → NEW
Reproduced also under Linux(build 2001040805) And under WinNT(build 2001040604)(If you remove read permissions via "properties->security->permissions")
-->Networking:File
Assignee: neeti → dougt
Component: Networking → Networking: File
Based on comments from Alexei, marking OS and Platform to All.
OS: Solaris → All
Hardware: Sun → All
qa to me. probably related to bug 19073 + testcase. No analogous problem w/ MacOS, unless you include AppleShare volumes...
Keywords: testcase
QA Contact: tever → benc
Summary: Read-protected file:/// URL treated as empty → file: no read permissions should error
Alexei - is your NT case a shared volume or NTFS? I didn't see the same permissions on my WinNT system.
Bug reproduced under NT4.0, SP4, NTFS filesystem (localdisk) Steps to reproduce: 1)Logon as Administrator 2)Create simple HTML file(e.g D:\dummy.html) 3)Open it in Mozilla and note, that it is opened and shown. 4)Right click on this file, click on "Properties", cliek on "Security" and then click on "Permissions". Set permisiions to "Everyone -- No Access(None)" and press OK button. 5)Now restart browser and type "file:///D:/dummy.html" in location bar Note that "Read D:\dummy.html" printed in status bar and nothing more happens. Page isn't shown without any warnings.
*** Bug 120790 has been marked as a duplicate of this bug. ***
Reseting severity... no feedback is definately not trivial (in fact, the bug on https links not giving decent feedback was major or critical). I run in to this ALOT browsing files for testcases, etc... quite puzzling sometimes.
Severity: trivial → normal
There is an error now, just the wrong one. Loading a file without read permissions pops a dialog saying the file does not exsist. Doug, if you eaither want to resummarize this bug, or open a new one...
We need to cover this for all plats. Jeremy, what platforms are you using?
Linux 2002051009 (1.0 branch)
Whiteboard: checkMac checkWin
Blocks: 159144
Happens in Mac OS X, in Composer. I filed a separate bug and made it a depends.
No longer blocks: 159144
Whiteboard: checkMac checkWin → checkWin
Blocks: 159144
*** Bug 151121 has been marked as a duplicate of this bug. ***
Wrote testcases for all plats now.
Whiteboard: checkWin
No longer blocks: 159144
mass reassigning to nobody.
Assignee: dougt → nobody
Whiteboard: [necko-would-take]
Priority: P3 → P5

Still actual for 21 years.
Related: bug #426177

Severity: normal → S3

This is the current behavior, the issue was fixed at some point but we forgot to close this bug

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

Attachment

General

Created:
Updated:
Size: