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 57380 - fqn class names: remove trailing blanks/CR from web.xml ui editor
Summary: fqn class names: remove trailing blanks/CR from web.xml ui editor
Status: CLOSED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-03 03:57 UTC by _ ludo
Modified: 2006-03-24 13:12 UTC (History)
2 users (show)

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 _ ludo 2005-04-03 03:57:41 UTC
In servlet class name element of web.xml, I think it is OK to have spaces or
CR(LF) before and after the FQN class name.
The BP catalog samples have some...
But the web.xml visual editor fails to "go to source" button with such pattern...
The fix is very easy: got to source for servlet class names or other fqn names
described in web.xml should remove all leading or trailing blank chars or \n chars.
p2, since the usability of the web.xml visual editor is impacted...
If this cannot be fixed, move this bug to BP solution catalog category.
Comment 1 Milan Kuchtiak 2005-04-04 09:45:10 UTC
The fix is easy.
Planned to 4.1.
Comment 3 Pavel Fiala 2005-04-04 15:19:25 UTC
It would be better to perform necessary checks and trim() in DDUtils.
Comment 4 _ ludo 2005-04-04 15:21:50 UTC
Need to verify this is working as well in ejb-jar.xml editor...
Comment 6 Milan Kuchtiak 2005-04-04 15:36:27 UTC
Pavle, the second diff is just code simplification.
Could you also check if sun-web.xml editor contains similar functionality ?
Comment 7 Milan Kuchtiak 2005-04-04 15:50:02 UTC
I am sorry, I meant the ejb-jar.xml not sun-web.xml.
Comment 8 Pavel Fiala 2005-04-04 15:58:43 UTC
Current changes are OK.

In ejb-jar we haven't such issue as we don't work with XML elements but with
properties of EjbJar object.
Comment 9 zikmund 2005-04-06 10:35:49 UTC
Verified in trunk build 200504051800 by QE - it is ready for release41 integration.
Comment 10 Milan Kuchtiak 2005-04-06 15:59:16 UTC
Changes merged to release41 branch.
Comment 11 zikmund 2005-04-07 17:22:41 UTC
Verified in build 200504062223 (release41 branch).