Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0007493 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | minor | always | 2009-02-11 11:04 | 2009-04-22 00:00 | |||
Reporter | schmidtm | View Status | public | |||||
Assigned To | alostale | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | 2.50beta | |||
Status | closed | Fix in branch | Fixed in SCM revision | 13443 | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | PostgreSQL | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | 2.40 | SCM revision | ||||||
Merge Request Status | ||||||||
Review Assigned To | ||||||||
OBNetwork customer | No | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Support ticket | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0007493: Application can not be deployed on Servlet 2.4-compliant webcontainer like Glassfish v3 | |||||||
Description | While migrating OpenBravo to Glassfish v3 (prelude release) we discovered this exception on deployment: java.lang.IllegalArgumentException: Invalid URL Pattern: [ /ad_callouts/SL_ProductionPlan_Conversion.html ] at com.sun.enterprise.deployment.node.web.ServletMappingNode.setElementValue(ServletMappingNode.java:88) at com.sun.enterprise.deployment.node.SaxParserHandler.endElement(SaxParserHandler.java:423) This is because our com.sun.enterprise.util.net.URLPattern.isValid() enforces the Servlet 2.4 spec: SRV.13.2 Rules for Processing the Deployment Descriptor: "URI paths specified in the deployment descriptor are assumed to be in URLdecoded form. The containers must inform the developer with a descriptive error message when URL contains CR(#xD) or LF(#xA). The containers must preserve all other characters including whitespace in URL." This constraint has been added to Servlet-2.4. Most Servlet-2.3 implementations like tomcat are more forgiving by swalloing this in web.xml: <url-pattern> /ad_callouts/SL_ProductionPlan_Conversion.html </url-pattern> Whereas for GFv3 and other 2.4-compliant webcontainers you have to modify this into: <url-pattern>/ad_callouts/SL_ProductionPlan_Conversion.html</url-pattern> I bet you don't write these aprox. 2000 servlet-mappings by hand, therefore it should be no big deal to write them without CR/NL given that it's still backward-compatible and should cause no other grieve. I've added a patch for your reference. cheers, Matthias Schmidt Sun Microsystems, Inc. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ![]() ![]() | |||||||
![]() |
|
![]() |
|
(0013341) jpabloae (viewer) 2009-02-11 12:59 |
You are right, this is wrong. I attach a patch that should fix it (wad-rv24.patch). I think this should be fixed in trunk and in r2.40. I reassign this issue to the WAD maintainer (alostale). |
(0013783) svnbot (viewer) 2009-02-20 08:49 |
Repository: openbravo Revision: 13443 Author: alostale Date: 2009-02-20 08:49:06 +0100 (Fri, 20 Feb 2009) fixed bug 0007493: Application can not be deployed on Servlet 2.4-compliant webcontainer like Glassfish v3 --- U trunk/src-wad/src/org/openbravo/wad/web.xml --- https://dev.openbravo.com/websvn/openbravo/?rev=13443&sc=1 [^] |
![]() |
|||
Date Modified | Username | Field | Change |
2009-02-11 11:04 | schmidtm | New Issue | |
2009-02-11 11:04 | schmidtm | Assigned To | => rafaroda |
2009-02-11 11:04 | schmidtm | File Added: web.xml.diff.gz | |
2009-02-11 11:05 | rafaroda | Assigned To | rafaroda => jpabloae |
2009-02-11 11:34 | jpabloae | Status | new => acknowledged |
2009-02-11 12:58 | jpabloae | File Added: wad-rv24.patch | |
2009-02-11 12:59 | jpabloae | Note Added: 0013341 | |
2009-02-11 12:59 | jpabloae | Assigned To | jpabloae => alostale |
2009-02-18 11:43 | alostale | OBNetwork customer | => No |
2009-02-18 11:43 | alostale | Severity | critical => minor |
2009-02-20 08:49 | svnbot | Checkin | |
2009-02-20 08:49 | svnbot | Note Added: 0013783 | |
2009-02-20 08:49 | svnbot | Status | acknowledged => resolved |
2009-02-20 08:49 | svnbot | Resolution | open => fixed |
2009-02-20 08:49 | svnbot | svn_revision | => 13443 |
2009-04-21 10:54 | psarobe | Status | resolved => closed |
2009-04-22 00:00 | anonymous | sf_bug_id | 0 => 2777926 |
Copyright © 2000 - 2009 MantisBT Group |