Openbravo Issue Tracking System - POS2
View Issue Details
0057326POS2POSpublic2024-11-29 08:142024-12-31 16:59
gowthamveeramuthu 
jarmendariz 
highmajoralways
closedfixed 
5
 
24Q225Q1 
No
0057326: user not able to login after updating instance from 24Q1 to 24Q2
user not able to login after updating instance from 24Q1 to 24Q2.
For Rand customer we updated instance from 24Q1 to 24Q2.
once the build done on productions, the users not able to login the application for the first time.
error attached "loginError".
the user with manual role facing this issue, if you have admin role then its logged in.

the message error is displayed in this point:
https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/blob/master/src/org/openbravo/core2/login/Core2LoginMobileAccessChecker.java?ref_type=heads#L54 [^]

currentAppMode is blank

the message:
...Role Vendeur Balaboosté Mauritius has not access to Application POS2 and/or Application Mode

the appmode is not received from pos because the source is not refreshed, even if you refresh the browser the source is not updated.
there is no appmode present here(image attached "afterUpdate24Q2AppModeNotReflected")
prepare the instance with 24Q1
clean the browser cache.
do the login with manual role user.
do logout (no close chrome - no refresh login page)
update the instance to 24Q2
do login
the user cannot able to login
No tags attached.
depends on backport 005740124Q4.1 closed jarmendariz user not able to login after updating instance from 24Q1 to 24Q2 
depends on backport 005740224Q3.3 scheduled Triage Platform Base user not able to login after updating instance from 24Q1 to 24Q2 
depends on backport 005740324Q2.5 scheduled Triage Platform Base user not able to login after updating instance from 24Q1 to 24Q2 
Not all the children of this issue are yet resolved or closed.
jpg loginError.jpg (35,483) 2024-11-29 08:14
https://issues.openbravo.com/file_download.php?file_id=20578&type=bug
jpg

png afterUpdate24Q2AppModeNotReflected.png (1,143,987) 2024-11-29 08:15
https://issues.openbravo.com/file_download.php?file_id=20579&type=bug
png repo24Q2havingAppMode.png (244,359) 2024-11-29 08:15
https://issues.openbravo.com/file_download.php?file_id=20580&type=bug
png
Issue History
2024-11-29 08:14gowthamveeramuthuNew Issue
2024-11-29 08:14gowthamveeramuthuAssigned To => Retail
2024-11-29 08:14gowthamveeramuthuTriggers an Emergency Pack => No
2024-11-29 08:14gowthamveeramuthuFile Added: loginError.jpg
2024-11-29 08:15gowthamveeramuthuFile Added: afterUpdate24Q2AppModeNotReflected.png
2024-11-29 08:15gowthamveeramuthuFile Added: repo24Q2havingAppMode.png
2024-12-04 09:34aaroncaleroAssigned ToRetail => Triage Platform Base
2024-12-10 09:00AugustoMauchStatusnew => scheduled
2024-12-10 15:48hgbotNote Added: 0173149
2024-12-11 09:49AugustoMauchAssigned ToTriage Platform Base => jarmendariz
2024-12-16 12:57hgbotNote Added: 0173336
2024-12-31 16:59hgbotNote Added: 0173769
2024-12-31 16:59hgbotNote Added: 0173770
2024-12-31 16:59hgbotNote Added: 0173771
2024-12-31 16:59hgbotResolutionopen => fixed
2024-12-31 16:59hgbotStatusscheduled => closed
2024-12-31 16:59hgbotFixed in Version => 25Q1
2024-12-31 16:59hgbotNote Added: 0173772

Notes
(0173149)
hgbot   
2024-12-10 15:48   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1684 [^]
(0173336)
hgbot   
2024-12-16 12:57   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/3240 [^]
(0173769)
hgbot   
2024-12-31 16:59   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 35fda9c635e9f102879a2024516b1870d58b8578
Author: Javier Armendáriz <j.armendariz@orisha.com>
Date: 31-12-2024 14:55:38
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/35fda9c635e9f102879a2024516b1870d58b8578 [^]

Related to ISSUE-57326: Setting POS as the default app mode for sales touchpoint app

---
M src-db/database/sourcedata/AD_APPLICATION.xml
M src/org/openbravo/pos2/login/POS2LoginHandler.java
---
(0173770)
hgbot   
2024-12-31 16:59   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/3240 [^]
(0173771)
hgbot   
2024-12-31 16:59   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1684 [^]
(0173772)
hgbot   
2024-12-31 16:59   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: 8d2fece561608e40d7bd1861001286dedcff683c
Author: Javier Armendáriz <j.armendariz@orisha.com>
Date: 31-12-2024 14:55:20
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/8d2fece561608e40d7bd1861001286dedcff683c [^]

Fixed ISSUE-57326: Adding default AppMode to Application to use on login with unidentified appMode

This value will only be used when the application's LoginHandler request does not provide an
application mode (i.e. a client that uses an older version of sources that does not support
application modes). In case this field is empty, appMode in MobileAccessChecker is empty string,
as of now. This change does not affect normal flows with clients supporting application modes.

---
A src-db/database/model/modifiedTables/AD_APPLICATION.xml
A src/org/openbravo/core2/login/ApplicationDefaultAppMode.java
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_ELEMENT.xml
M src-db/database/sourcedata/AD_FIELD.xml
M src-db/database/sourcedata/AD_REFERENCE.xml
M src-db/database/sourcedata/AD_REF_TABLE.xml
M src/org/openbravo/core2/login/Core2LoginHandlerApplicationModeResponse.java
M src/org/openbravo/core2/login/Core2LoginMobileAccessChecker.java
---