Community
Participate
Working Groups
Build Identifier: 321 When you create a web fragment project with a name with between spaces, the wizard adds a space in the <name> tag in the DD, resulting in an XML validation error. Reproducible: Always
Created attachment 174197 [details] patch Replaced the space if any in the <name> field with '_' during project creation. Patch attached for review.
approved
Created attachment 174241 [details] patch This patch expands on the previous patch to consider all the matching rules for special characters for the <name> field, and covers many additional scenarios over the previous patch.
Just wanted to add in a comment as to why I am comparing against the incrementally building string - there are 2 pieces to the regex in the form (A)(B). Its not sufficient to compare just individual characters since their place in the sequence will not be known, hence the incremental string compare.
Thanks Hari, this is a more complete fix...
* Explain why you believe this is a stop-ship defect. Or, if it is a "hotbug" (requested by an adopter) please document it as such. This bug fixes an issue that causes user's web fragment DD to have errors (caused by incorrect handling of the <name> tag by tooling. * Is there a work-around? If so, why do you believe the work-around is insufficient? Manually edit the DD * How has the fix been tested? Is there a test case attached to the bugzilla record? Has a JUnit Test been added? Tested by using the web fragment project creation wizard with various project names that need to be handled by the <name> field * Give a brief technical overview. Who has reviewed this fix? This fix has been reviewed by Chuck Bridgham. * What is the risk associated with this fix? No known risks.
Not sure this rises to the level of severity to be fixed at this point, but given the minimal risk, seems reasonable.
code checked into head for wtp 3.2.1