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 77998 - Add Struts support overwrites existing struts-config.xml
Summary: Add Struts support overwrites existing struts-config.xml
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: Struts (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: _ potingwu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-15 15:39 UTC by Martin Schovanek
Modified: 2009-11-02 11:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Schovanek 2006-06-15 15:39:26 UTC
[#200606120200, jdk1.5.0]

to reproduce:
-------------
1) create a Web Project with Struts support
2) modify the struts-config.xml
3) remove the ActionServlet rigistration from web.xml
4) add the Struts support again
ERROR: the struts-config.xml file is silently overwriten, IDE should at least
show a warning-dialog
Comment 1 Petr Pisl 2006-06-27 16:21:48 UTC
Fixed in the release55 branch. 
IDE:-------------------------------------------------
IDE: [6/27/06 4:40 PM] Committing "struts" started
Checking in StrutsFrameworkProvider.java;
/cvs/web/struts/src/org/netbeans/modules/web/struts/StrutsFrameworkProvider.java,v
 <--  StrutsFrameworkProvider.java
new revision: 1.3.4.3.2.2; previous revision: 1.3.4.3.2.1
done
Checking in Bundle.properties;
/cvs/web/struts/src/org/netbeans/modules/web/struts/Bundle.properties,v  <-- 
Bundle.properties
new revision: 1.2.4.2.2.3; previous revision: 1.2.4.2.2.2
done
IDE: [6/27/06 4:40 PM] Committing "struts" finished
Comment 2 Martin Schovanek 2007-03-01 17:55:35 UTC
Reproducible in build #20070301-1027. Now there is a question dialog
"struts-config.xml already exists, do you want to replace it?", but when you
choose [ No ] the file is replaced anyway.
Comment 3 Jiri Prox 2007-09-17 21:41:31 UTC
Obsolete milestone, please reevaluate
Comment 4 Petr Pisl 2007-10-18 21:49:12 UTC
Still reproducible. 
Comment 5 Jiri Prox 2008-04-11 01:10:49 UTC
moving opened issues from TM <= 6.1 to TM=Dev
Comment 6 _ potingwu 2008-11-20 23:29:40 UTC
.
Comment 7 Quality Engineering 2009-11-02 11:14:21 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX