Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0022421Openbravo ERPA. Platformpublic2012-11-28 18:122012-11-28 18:12
caristu 
AugustoMauch 
highminoralways
newopen 
5
 
 
Core
No
0022421: VariablesSecureApp variables not filled when using it from a WebService
Currently is not possible to get the value for variables (like language) from VariablesSecureApp class using the HttpServletRequest class in a WebService.

The reason for this is because some variables are filled when accessing a context, and web services are executed outside the context.

It would be nice if this variables were filled somehow in order to have an easy way of using them in a web service.
1) In a class that implements the WebService interface, instantiate a VariablesSecureApp object in this way: vars = new VariablesSecureApp(request).
2) Try to get the language using the vars.getLanguage() method.
No tags attached.
Issue History
2012-11-28 18:12caristuNew Issue
2012-11-28 18:12caristuAssigned To => AugustoMauch
2012-11-28 18:12caristuModules => Core

There are no notes attached to this issue.