Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0036080 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
backport | [Openbravo ERP] A. Platform | minor | always | 2017-05-23 16:30 | 2017-05-25 09:57 | |||
Reporter | ngarcia | View Status | public | |||||
Assigned To | alostale | |||||||
Priority | immediate | Resolution | fixed | Fixed in Version | 3.0PR17Q1.2 | |||
Status | closed | Fix in branch | Fixed in SCM revision | a01f50a50fab | ||||
Projection | none | ETA | none | Target Version | 3.0PR17Q1.2 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | caristu | |||||||
Web browser | ||||||||
Modules | Core | |||||||
Regression level | Production - Confirmed Stable | |||||||
Regression date | 2016-10-14 | |||||||
Regression introduced in release | 3.0PR17Q1 | |||||||
Regression introduced by commit | https://code.openbravo.com/erp/devel/pi/rev/89f0eb718711 [^] | |||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0036080: inconsistent process (ad_process) configuration generates invalid web.xml | |||||||
Description | Having defined an inconsistent/incorrect configuration for a process (ad_process) can generate an invalid web.xml which stops Tomcat to be started. Example of incorrect definition: * Report = 'N' * UI Pattern = Standard * record in AD_MODEL_OBJECT_MAPPING with object_type = 'S' | |||||||
Steps To Reproduce | As System Admin role: 1. Set Core In Development 2. Go to Report and Process Window and select 'Print Requisition' report 3. Set it as Report = 'N' 4. Make any change in the Process Class tab and undo it in order the update the updated column (thus the web.xml file will be generated again) 5. Execute in DB: update ad_model_object set object_type = 'S' where ad_model_object_id = '1004400018' 6. Compile 7. Try to restart Tomcat and check the following error is raised: Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/openbravo]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:162) ... 6 more Caused by: java.lang.IllegalArgumentException: Servlet mapping specifies an unknown servlet name R1004400018 at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:3425) Check in build/javasqlc/src/web.xml file that there is an <servlet-mapping> entry for the 1004400018 ad_model_object but there is not the <servlet-class> entry | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | ||||||||
|
Notes | |
(0096749) hgbot (developer) 2017-05-24 10:45 |
Repository: erp/backports/3.0PR17Q1.2 Changeset: a01f50a50fabaee61fac4f6c55ad55f4dd6e496c Author: Asier Lostalé <asier.lostale <at> openbravo.com> Date: Wed May 24 10:39:33 2017 +0200 URL: http://code.openbravo.com/erp/backports/3.0PR17Q1.2/rev/a01f50a50fabaee61fac4f6c55ad55f4dd6e496c [^] fixed bug 36080: inconsistent ad_process generates invalid web.xml Some invalid defintions of ad_process generated invalid web.xml because mapping was included referencing to a class that was filtered out, causing Tomcat to refuse to start. It has been fixed by adding to the query that retrieves mappings the same restrictions already added to the query looking for classes, so mappings will be obtained only if class is present. --- M src-wad/src/org/openbravo/wad/Wad_data.xsql --- |
(0096779) caristu (developer) 2017-05-25 09:57 |
Code reviewed + testing OK. |
Issue History | |||
Date Modified | Username | Field | Change |
2017-05-24 10:28 | alostale | Type | defect => backport |
2017-05-24 10:28 | alostale | Target Version | => 3.0PR17Q1.2 |
2017-05-24 10:35 | alostale | Assigned To | platform => alostale |
2017-05-24 10:45 | hgbot | Checkin | |
2017-05-24 10:45 | hgbot | Note Added: 0096749 | |
2017-05-24 10:45 | hgbot | Status | scheduled => resolved |
2017-05-24 10:45 | hgbot | Resolution | open => fixed |
2017-05-24 10:45 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/backports/3.0PR17Q1.2/rev/a01f50a50fabaee61fac4f6c55ad55f4dd6e496c [^] |
2017-05-25 09:57 | caristu | Note Added: 0096779 | |
2017-05-25 09:57 | caristu | Status | resolved => closed |
2017-05-25 09:57 | caristu | Fixed in Version | => 3.0PR17Q1.2 |
Copyright © 2000 - 2009 MantisBT Group |