DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21382>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21382

Spaces in struts xml config files cause silent failures

           Summary: Spaces in struts xml config files cause silent failures
           Product: Struts
           Version: Unknown
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: Tiles framework
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


In the tiles xml file the following entry will fail silently

<definition name="portlet.category.view_category_resources"
extends="portlet_layout">
                <put name="portlet_id" value="40" />
                <put name="content" value=" 
/portlet/category/view_category_resources.jsp" />
        </definition>

The outcome is a silent error where the content path is simply never executed.

It can be very hard to spot the offending space, especially when there is no
message given that either the file is invalid, or that an entry has been ignored
or avoided by tiles. 

Tiles should use the java.lang.String trim() function when reading such values,
since the space is always an error (?), or at least put out an error message to
alert us poor developers:-)

The struts.xml file has the same errant behaviour.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to