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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0049544
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajoralways2022-06-13 22:042022-06-23 18:20
ReporteraxelmercadoView Statuspublic 
Assigned Toaxelmercado 
PriorityhighResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget VersionRR20Q3.4
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionRR20Q3.4SCM revision 
Review Assigned Tocaristu
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0049544: Problem in the ExportOrder call with a user containing a role with the "Restrict backend access" check enabled.

DescriptionAn error is generated when making an API call to obtain an order with a user with restricted access to the backend.
Steps To Reproduce1-Generate a role with the following attributes and assign it to a user:
*User Level= Client+Organization
*Check "Is Web Service Enabled" = 'Y'
*Check "Restrict backend access" = 'Y'
*Check "Client Administrator" = 'Y'

2-Send an API call through the following endpoint:
"https://{{OPENBRAVO_URL}}/openbravo/org.openbravo.mobile.core.service.jsonrest/org.openbravo.retail.posterminal.ExportOrder" [^] and the authentication of the user with the role previusly created.

3-If we uncheck "Restrict backend access" the call works correctly, although this should not be a problem.
TagsNOR
Attached Filespng file icon example1.png [^] (111,033 bytes) 2022-06-15 20:06


txt file icon stacktraceerrorapi.txt [^] (4,330 bytes) 2022-06-22 19:19 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0044564pi closedranjith_qualiantech_com Export order works one time, then show an error message 

-  Notes
(0138362)
caristu (manager)
2022-06-15 10:52

Reassigning it to the Retail team as this is the ExportOrder web services exposed by the posterminal module.

Apart from this could you provide the stack trace of the error that you are receiving? I'm not able to reproduce the problem in an standard environment.
(0138385)
axelmercado (developer)
2022-06-15 20:06

I attach an image of the error.
(0138436)
caristu (manager)
2022-06-16 16:55

Can't you provide the error stack trace from the log? That would help to identify the root cause of the error, because that message seems not to be coming from the standard sources.
(0138652)
axelmercado (developer)
2022-06-22 19:19

I attach a stacktrace with the error
(0138695)
caristu (manager)
2022-06-23 12:46

In pi that stack trace is not followed because of the following fix[1], that prevents reaching the part of the code which is throwing the exception.

Is that fix present in the environment where the problem is reproduced?

[1] https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/c9c8815d52435b521dd1805c532c71bc99dd5d34 [^]
(0138696)
axelmercado (developer)
2022-06-23 13:38

I checked it and they don't have that patch
(0138697)
axelmercado (developer)
2022-06-23 13:39

We reproduce the error in a pristine in client version
(0138699)
caristu (manager)
2022-06-23 13:48

Can you please confirm that by applying the patch[1] the problem gets fixed?

[1] https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/c9c8815d52435b521dd1805c532c71bc99dd5d34 [^]
(0138703)
axelmercado (developer)
2022-06-23 16:54

I applied the patch and it works
(0138712)
caristu (manager)
2022-06-23 18:20

Already fixed by 0044564

- Issue History
Date Modified Username Field Change
2022-06-13 22:04 axelmercado New Issue
2022-06-13 22:04 axelmercado Assigned To => Triage Platform Conn
2022-06-13 22:04 axelmercado Triggers an Emergency Pack => No
2022-06-13 23:21 rafaroda Tag Attached: NOR
2022-06-15 10:52 caristu Note Added: 0138362
2022-06-15 10:52 caristu Assigned To Triage Platform Conn => Retail
2022-06-15 10:52 caristu Category Retail API => Web POS
2022-06-15 10:52 caristu Assigned To Retail => axelmercado
2022-06-15 10:52 caristu Status new => feedback
2022-06-15 11:01 caristu Relationship added related to 0048976
2022-06-15 11:35 caristu Relationship deleted related to 0048976
2022-06-15 20:06 axelmercado Note Added: 0138385
2022-06-15 20:06 axelmercado File Added: example1.png
2022-06-16 16:12 axelmercado Status feedback => new
2022-06-16 16:13 axelmercado Assigned To axelmercado => Retail
2022-06-16 16:55 caristu Note Added: 0138436
2022-06-16 16:55 caristu Assigned To Retail => axelmercado
2022-06-16 16:55 caristu Status new => feedback
2022-06-22 19:19 axelmercado Note Added: 0138652
2022-06-22 19:19 axelmercado File Added: stacktraceerrorapi.txt
2022-06-22 19:19 axelmercado Status feedback => new
2022-06-23 12:46 caristu Note Added: 0138695
2022-06-23 12:46 caristu Status new => feedback
2022-06-23 13:38 axelmercado Note Added: 0138696
2022-06-23 13:38 axelmercado Status feedback => new
2022-06-23 13:39 axelmercado Note Added: 0138697
2022-06-23 13:48 caristu Note Added: 0138699
2022-06-23 13:48 caristu Status new => feedback
2022-06-23 16:54 axelmercado Note Added: 0138703
2022-06-23 16:54 axelmercado Status feedback => new
2022-06-23 18:20 caristu Review Assigned To => caristu
2022-06-23 18:20 caristu Note Added: 0138712
2022-06-23 18:20 caristu Status new => closed
2022-06-23 18:20 caristu Resolution open => fixed
2022-06-23 18:20 caristu Relationship added related to 0044564


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker