This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 30241 - WAR: Export WAR file to r/o directory throws exception
Summary: WAR: Export WAR file to r/o directory throws exception
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: -S1S-
Hardware: PC Linux
: P4 blocker (vote)
Assignee: akemr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-21 13:47 UTC by Alexei Mokeev
Modified: 2006-06-04 23:58 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Stack trace (2.49 KB, text/plain)
2003-01-21 14:11 UTC, Alexei Mokeev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexei Mokeev 2003-01-21 13:47:42 UTC
Steps to reproduce:
1)Mount some web module, rightclick on WEB-INF
node and select
"Export WAR File ..." menuitem
2)In "Choose WAR File Name" dialog select some
directory with readonly permissions and try
toexport WAR file into it.

Notice, that "Unexpected Exception" dialog appears
and this dialog suggest you to file a bug.

War packager must check for permissions or handle
such situations
more user friendly.

Please see attached stack trace for details.

Reproduced on S1S 4.1 build 030116
Comment 1 Alexei Mokeev 2003-01-21 14:11:23 UTC
Created attachment 8630 [details]
Stack trace
Comment 2 akemr 2003-02-10 17:31:02 UTC
Fixed in trunk.

(web.context.actions.PackageWarAction.java rev. 1.9)
Comment 3 Jason Rush 2003-02-14 07:52:52 UTC
Verified in NetBeans dev build 200302130100.  Error dialog 
now given when attempting to export WAR to a read-only 
system.  The text may need to be modified though.  I've 
notified Ann Sunhachwee to take a look at the text.
Comment 4 Alexei Mokeev 2003-02-14 11:26:54 UTC
With r/o directories all works well.
The same exception thrown if folder has following permissions:
"drw-rw-rw-" or "d-w--w--w-".

Of course, it is rare situation, but maybe it can be fixed by the same
fix.