Openbravo Issue Tracking System - POS2
View Issue Details
0047257POS2POSpublic2021-06-28 10:502021-06-28 15:31
cberner 
cberner 
highcriticalhave not tried
closedfixed 
5
 
TAPTAP 
caristu
No
No
0047257: Profile change invalidates current session, requiring log-in again
When changing profile, the session is invalidated, making it impossible to switch profile or pay tickets without relogging. It is not possible to switch back to the previous profile either, without relogging.

This makes profile button/feature useless, as it requires marking by default a profile, instead of using the expected switch to x profile, as expected.

In backend when the profile changes this is the message that appears in tomcat log:
2021-06-28 10:39:38,095 [http-nio-8080-exec-1] ERROR org.openbravo.mobile.core.process.MobileService - CSRF token check failed. Request=/openbravo/org.openbravo.mobile.core.service.jsonrest/org.openbravo.retail.posterminal.OrderLoader, SessionID=A0A04E29ED22683F1153877A5C1CAED7, SessionToken=3F503F025D9D40629D3BFDC99098FDD5, RequestToken=8FB1701AE7E14C48B6D25C88F2E8E4A7
1. Open and login in WebPOS
2. Click on user and Profile, change it to something else
3. Try to pay a ticket, or opening profile popup again. (it will fail with a similar error as in attached screenshot)

You may reproduce it in livebuilds: https://livebuilds.openbravo.com/retail_pos2_pgsql/web/pos/?terminal=VBS-2 [^]
No tags attached.
blocks defect 0047255 closed cberner Profile change invalidates current session, requiring log-in again 
Issue History
2021-06-28 13:11cbernerTypedefect => backport
2021-06-28 13:11cbernerTarget Version => TAP
2021-06-28 15:30cbernerNote Added: 0129858
2021-06-28 15:30cbernerStatusscheduled => resolved
2021-06-28 15:30cbernerFixed in Version => TAP
2021-06-28 15:30cbernerResolutionopen => fixed
2021-06-28 15:31cbernerReview Assigned To => caristu
2021-06-28 15:31cbernerStatusresolved => closed

Notes
(0129858)
cberner   
2021-06-28 15:30   
MR created here: https://gitlab.com/obcustomers/AGAP/org.openbravo.core2/-/merge_requests/35 [^]