Openbravo Issue Tracking System - Retail Modules
View Issue Details
0045688Retail ModulesWeb POSpublic2021-01-06 16:402021-01-14 08:55
collazoandy4 
markmm82 
normalminorhave not tried
closedfixed 
5
 
RR21Q2 
No
0045688: The message 'Current user/role has no access to <clazz name>' can't be translated
When a customer has no access to a class that inherits from SecuredJSONProcess and perform a request the error message shown can't be translated because is not defined in the AD_MESSAGE table
-
Send in the json error a message from AD_MESSAGE
No tags attached.
png Error message.PNG (21,301) 2021-01-06 16:40
https://issues.openbravo.com/file_download.php?file_id=15226&type=bug
png
Issue History
2021-01-06 16:40collazoandy4New Issue
2021-01-06 16:40collazoandy4Assigned To => Retail
2021-01-06 16:40collazoandy4File Added: Error message.PNG
2021-01-06 16:40collazoandy4Resolution time => 1611097200
2021-01-06 16:40collazoandy4Triggers an Emergency Pack => No
2021-01-12 16:46markmm82Assigned ToRetail => markmm82
2021-01-12 16:46markmm82Statusnew => scheduled
2021-01-13 19:17hgbotNote Added: 0125437
2021-01-14 03:30hgbotNote Added: 0125439
2021-01-14 03:32hgbotNote Added: 0125440
2021-01-14 03:36markmm82Note Deleted: 0125437
2021-01-14 03:36markmm82Note Deleted: 0125439
2021-01-14 08:55hgbotResolutionopen => fixed
2021-01-14 08:55hgbotStatusscheduled => closed
2021-01-14 08:55hgbotFixed in Version => RR21Q2
2021-01-14 08:55hgbotNote Added: 0125441
2021-01-14 08:55hgbotNote Added: 0125442

Notes
(0125440)
hgbot   
2021-01-14 03:32   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/128 [^]
(0125441)
hgbot   
2021-01-14 08:55   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core [^]
Changeset: bf10b92a83b46db187b8fef2e3d07d4a7f8819d8
Author: Mark <markmm82@gmail.com>
Date: 2021-01-13T23:30:02-03:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/commit/bf10b92a83b46db187b8fef2e3d07d4a7f8819d8 [^]

Fixed BUG-45688: Translated 'Current user/role has no access to <clazz name>'

When a customer was no access to a class that inherits from SecuredJSONProcess and perform a request, the error message wasn't translated because was hardcoded in SecuredJSONProcess.java.

Now, a new error message was included into the database to be used instead of the hardcoded message. Additionally it will be automatically translated to session language when the request was done.

As note, by default the message is included only in spanish. To have other translations available will be required add them to this new message in the AD.

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/mobile/core/process/SecuredJSONProcess.java
---
(0125442)
hgbot   
2021-01-14 08:55   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/merge_requests/128 [^]