Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0017249
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajorrandom2011-05-18 16:592011-05-26 07:47
ReportervmromanosView Statuspublic 
Assigned Toiperdomo 
PriorityurgentResolutioninvalidFixed in Version
StatusclosedFix in branchpiFixed in SCM revision4ca58960e91f
ProjectionnoneETAnoneTarget Version3.0MP0
OSLinux 32 bitDatabasePostgreSQLJava version1.6.0_12
OS VersionDebian 5.0Database version8.3.8Ant version1.7.0
Product VersionSCM revision 
Review Assigned To
Web browser
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0017249: Static JS created outside core (in modules) could not work

DescriptionFor the CIF and NIF validator module, I have created a static JS that is called from a callout. The definition is very simple:

OB.CIFNIF = {};
OB.CIFNIF.showMessage = function(me, message, messageType) {
[continue]

- The CIFNIF object is defined inside our OB object.
- The module has a dependency to Core.

The problem is that the OB.CIFNIF object is created BEFORE the OB one, so the definition is totally wrong.

If I change the module dependency from Core to client.kernel, the OB.CIFNIF object is created after the OB one and it works fine. However this is not the solution because the system should know that each dependency of core should imply a dependency to the client.kernel module

Steps To Reproduce1. Install the CIF NIF validator module >=1.0.2
2. Define the SE_CIFNIF_Validator callout to the taxid column of the c_bpartner table and compile and restart tomcat as usual (optional)
4. Try to login into the application. The loading bar doesn't disappear. Check the JS console output for the error "Uncaught TypeError: Cannot set property 'CIFNIF' of undefined"
TagsNo tags attached.
Attached Files? file icon org.openbravo.module.cifnifvalidator-1.0.2.obx [^] (14,467 bytes) 2011-05-20 11:43

- Relationships Relation Graph ] Dependency Graph ]
blocks defect 0016484 closedvmromanos Localization Pack: Spain OB3 RC5 - SE_CIFNIF_Validator callout seems not to be working properly 

-  Notes
(0037427)
hgbot (developer)
2011-05-25 13:24

Repository: erp/devel/pi
Changeset: 4ca58960e91f2e7f5f680ec5834b8458edb55953
Author: Iván Perdomo <ivan.perdomo <at> openbravo.com>
Date: Wed May 25 13:23:07 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/4ca58960e91f2e7f5f680ec5834b8458edb55953 [^]

Fixes issue 17249: Use known list to build dependency list
Core has a undeclared dependency on client.kernel, client.application,
selector, etc modules.
If a module developed in 2.50 and only depends on core, tries to define a
ComponentProvider for definining a new StaticResource the order of inclusion
fails.

---
M modules/org.openbravo.client.kernel/src/org/openbravo/client/kernel/KernelUtils.java
---
(0037455)
iperdomo (reporter)
2011-05-25 18:34

The way to report messages to the user is using 'MESSAGE' and not using the JavaScript API behind messages.
(0037556)
hudsonbot (developer)
2011-05-26 07:47

A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/728387046be6 [^]

Maturity status: Test

- Issue History
Date Modified Username Field Change
2011-05-18 16:59 vmromanos New Issue
2011-05-18 16:59 vmromanos Assigned To => iperdomo
2011-05-18 16:59 vmromanos Modules => Core
2011-05-18 17:01 vmromanos Relationship added blocks 0016484
2011-05-18 17:02 iperdomo Status new => scheduled
2011-05-18 17:02 iperdomo fix_in_branch => pi
2011-05-20 11:43 vmromanos File Added: org.openbravo.module.cifnifvalidator-1.0.2.obx
2011-05-25 13:24 hgbot Checkin
2011-05-25 13:24 hgbot Note Added: 0037427
2011-05-25 13:24 hgbot Status scheduled => resolved
2011-05-25 13:24 hgbot Resolution open => fixed
2011-05-25 13:24 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/4ca58960e91f2e7f5f680ec5834b8458edb55953 [^]
2011-05-25 16:23 iperdomo Status resolved => new
2011-05-25 16:23 iperdomo Resolution fixed => open
2011-05-25 16:23 iperdomo Status new => scheduled
2011-05-25 18:34 iperdomo Note Added: 0037455
2011-05-25 18:34 iperdomo Status scheduled => closed
2011-05-25 18:34 iperdomo Resolution open => invalid
2011-05-26 07:47 hudsonbot Checkin
2011-05-26 07:47 hudsonbot Note Added: 0037556


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker