Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||
ID | |||||||||||
0020727 | |||||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||||
design defect | [Openbravo ERP] A. Platform | minor | always | 2012-06-12 09:45 | 2022-02-01 08:09 | ||||||
Reporter | iperdomo | View Status | public | ||||||||
Assigned To | Triage Platform Base | ||||||||||
Priority | normal | Resolution | open | Fixed in Version | |||||||
Status | acknowledged | Fix in branch | Fixed in SCM revision | ||||||||
Projection | none | ETA | none | Target Version | |||||||
OS | Linux 64 bit | Database | PostgreSQL | Java version | OpenJDK 1.6.0_24 | ||||||
OS Version | 3.3.7-1-ARCH | Database version | 9.1.3 | Ant version | 1.8.2 | ||||||
Product Version | SCM revision | ||||||||||
Review Assigned To | |||||||||||
Web browser | Google Chrome | ||||||||||
Modules | Core | ||||||||||
Regression level | |||||||||||
Regression date | |||||||||||
Regression introduced in release | |||||||||||
Regression introduced by commit | |||||||||||
Triggers an Emergency Pack | No | ||||||||||
Summary | 0020727: WADValidation should check the mapping name of *all* servlets, not only the ones associated to process or windows | ||||||||||
Description | According to Modularity's naming rules, the mapping names of manual code (servlets) need to start with the Java package of the module. "...mapping for all manual objects (forms, searchs, reports and processes) must start now with the module's package. For example, the mapping for a report in a module with package (org.myCompany.moduleTest) could be /org.myCompany.moduleTesr.reports/MyReport.html." http://forge.openbravo.com/projects/openbravoerp/forum/viewtopic.php?group_id=100&forumid=549512&topicid=7006555 [^] Currently you can register a Servlet breaking this naming rule and WADValidation doesn't warn about it | ||||||||||
Steps To Reproduce | * Create a module with javapackage: org.openbravo.issues.wadvalidation * Create a new AD Implementation in the Application Dictionary for a new servlet * Add a mapping name: /org.openbravo.service.json/test.html * Compile: ant smartbuild * Expected result: WADValidation should warn the user of an invalid mapping name * Actual result: No problem is reported to the user | ||||||||||
Proposed Solution | WADValidation should WARN on any servlet mapping name: select m.javapackage, mo.ad_module_id, mo.classname, mom.mappingname, mom.isactive from ad_model_object mo, ad_model_object_mapping mom, ad_module m where mo.ad_module_id is not null and mo.ad_module_id <> '0' and mom.ad_model_object_id = mo.ad_model_object_id and mo.ad_module_id = m.ad_module_id and mo.object_type = 'S' and mom.mappingname not like '/'||m.javapackage||'%' | ||||||||||
Tags | No tags attached. | ||||||||||
Attached Files | |||||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |
Notes | |
(0052322) AugustoMauch (administrator) 2012-09-24 12:35 |
Effort: 1 Impact: low Plan: mid |
Issue History | |||
Date Modified | Username | Field | Change |
2012-06-12 09:45 | iperdomo | New Issue | |
2012-06-12 09:45 | iperdomo | Assigned To | => alostale |
2012-06-12 09:45 | iperdomo | Web browser | => Google Chrome |
2012-06-12 09:45 | iperdomo | Modules | => Core |
2012-06-12 12:17 | alostale | Web browser | Google Chrome => Google Chrome |
2012-06-12 12:17 | alostale | Type | defect => design defect |
2012-09-24 12:35 | AugustoMauch | Web browser | Google Chrome => Google Chrome |
2012-09-24 12:35 | AugustoMauch | Note Added: 0052322 | |
2012-09-24 12:35 | AugustoMauch | Priority | urgent => normal |
2012-09-24 12:35 | AugustoMauch | Status | new => scheduled |
2017-03-31 14:36 | alostale | Status | scheduled => acknowledged |
2017-04-10 14:33 | alostale | Assigned To | alostale => platform |
2022-02-01 08:09 | alostale | Assigned To | platform => Triage Platform Base |
Copyright © 2000 - 2009 MantisBT Group |