Closed
Bug 332139
Opened 20 years ago
Closed 13 years ago
Remove comment on NS_ERROR_FAILURE case on file removal in nsJAR::Extract
Categories
(Core :: Networking: JAR, defect)
Core
Networking: JAR
Tracking
()
RESOLVED
FIXED
mozilla26
People
(Reporter: Waldo, Assigned: Cykesiopka)
References
()
Details
Attachments
(1 file, 1 obsolete file)
|
1.13 KB,
patch
|
glandium
:
review+
|
Details | Diff | Splinter Review |
I need to check in a patch for bug 309296 before the relevant code is in the tree, at which point I'll update the URL field. Note also that bug 322183 must be fixed before this bug can be fixed.
| Reporter | ||
Updated•20 years ago
|
| Reporter | ||
Updated•19 years ago
|
Component: Networking → Networking: JAR
| Reporter | ||
Updated•19 years ago
|
QA Contact: networking → networking.jar
| Reporter | ||
Comment 2•13 years ago
|
||
Seven years later, I'm gonna say no. :-)
Assignee: jwalden+bmo → nobody
| Reporter | ||
Updated•13 years ago
|
Flags: needinfo?(jwalden+bmo)
| Assignee | ||
Comment 3•13 years ago
|
||
(In reply to Jeff Walden [:Waldo] (remove +bmo to email) from comment #2)
> Seven years later, I'm gonna say no. :-)
:-) Ok, thanks!
| Assignee | ||
Comment 4•13 years ago
|
||
Attachment #789272 -
Flags: review?(taras.mozilla)
Comment 5•13 years ago
|
||
Comment on attachment 789272 [details] [diff] [review]
Proposed Patch
I think this should be ok, but I'll let glandium decide.
Attachment #789272 -
Flags: review?(taras.mozilla) → review?(mh+mozilla)
Comment 6•13 years ago
|
||
Comment on attachment 789272 [details] [diff] [review]
Proposed Patch
Review of attachment 789272 [details] [diff] [review]:
-----------------------------------------------------------------
There's at least one case that will return NS_ERROR_FAILURE for a non empty directory: if the directory is a mount point (and anything else that would return EBUSY from rmdir). There's also EINVAL (pathname has . as last component), ELOOP (too many symbolic links), ENAMETOOLONG, ENOMEM, EROFS (read-only file system). Of all those, except EINVAL and EBUSY, the code following the check would fail gracefully. However, for EINVAL and EBUSY, files would be created without an error, while they shouldn't have been created at all.
Note I haven't looked at the Windows side of things. Only Unix.
Attachment #789272 -
Flags: review?(mh+mozilla) → review-
| Assignee | ||
Comment 7•13 years ago
|
||
(In reply to Mike Hommey [:glandium] from comment #6)
> Comment on attachment 789272 [details] [diff] [review]
> Proposed Patch
>
> Review of attachment 789272 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> There's at least one case that will return NS_ERROR_FAILURE for a non empty
> directory: if the directory is a mount point (and anything else that would
> return EBUSY from rmdir). There's also EINVAL (pathname has . as last
> component), ELOOP (too many symbolic links), ENAMETOOLONG, ENOMEM, EROFS
> (read-only file system). Of all those, except EINVAL and EBUSY, the code
> following the check would fail gracefully. However, for EINVAL and EBUSY,
> files would be created without an error, while they shouldn't have been
> created at all.
> Note I haven't looked at the Windows side of things. Only Unix.
Thanks for the detailed explanation!
Should the current behaviour just be left unchanged then?
Comment 8•13 years ago
|
||
(In reply to Cykesiopka from comment #7)
> Should the current behaviour just be left unchanged then?
I guess so. At this point, we may just want to remove the comment in the code and close this bug.
| Assignee | ||
Comment 9•13 years ago
|
||
(In reply to Mike Hommey [:glandium] from comment #8)
> I guess so. At this point, we may just want to remove the comment in the
> code and close this bug.
Ok. I've adjusted the bug summary to show this, but please change it back / to something else if that is more appropriate.
Summary: Remove NS_ERROR_FAILURE case on file removal in nsJAR::Extract → Remove comment on NS_ERROR_FAILURE case on file removal in nsJAR::Extract
| Assignee | ||
Comment 10•13 years ago
|
||
Assignee: nobody → cykesiopka.bmo
Attachment #789272 -
Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #792527 -
Flags: review?(mh+mozilla)
Updated•13 years ago
|
Attachment #792527 -
Flags: review?(mh+mozilla) → review+
| Assignee | ||
Updated•13 years ago
|
Keywords: checkin-needed
Comment 11•13 years ago
|
||
Keywords: checkin-needed
Comment 12•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla26
You need to log in
before you can comment on or make changes to this bug.
Description
•