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=6756>.
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=6756

Problem in getApplicationPrefixes in RequestUtils - Multi-app problem

           Summary: Problem in getApplicationPrefixes in RequestUtils -
                    Multi-app problem
           Product: Struts
           Version: Nightly Build
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Utilities
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


The getApplicationPrefixes method in RequestUtils seems to have a small bug 
that causes multi-apps not to work properly. The problem lies in the following 
code from that method:

etc...
if (prefix.length() > 0) {
  list.add(name);
}

The problem is that prefix has been stripped just before this code down to the 
sub-app prefix using the substring method, so that Action.APPLICATION_KEY is 
taken out. The prefix is the value that should be added to the list of sub-app 
prefixes, not the name.

The line list.add(name) needs to be changed to:
list.add(prefix);

Thanks,
Chuck Cavaness

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

Reply via email to