Openbravo Issue Tracking System - POS2
View Issue Details
0057401POS2POSpublic2024-11-29 08:142025-01-20 23:22
gowthamveeramuthu 
jarmendariz 
highmajoralways
closedfixed 
5
 
24Q4.124Q4.1 
No
0057401: 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.
blocks defect 005732624Q2 closed jarmendariz user not able to login after updating instance from 24Q1 to 24Q2 
Issue History
2024-12-10 09:00AugustoMauchTypedefect => backport
2024-12-10 09:00AugustoMauchTarget Version24Q2 => 24Q4.1
2025-01-17 12:14jarmendarizAssigned ToTriage Platform Base => jarmendariz
2025-01-17 13:13hgbotNote Added: 0174314
2025-01-17 13:26hgbotNote Added: 0174320
2025-01-20 12:01hgbotNote Added: 0174382
2025-01-20 12:01hgbotNote Added: 0174383
2025-01-20 12:01hgbotNote Added: 0174384
2025-01-20 12:01hgbotResolutionopen => fixed
2025-01-20 12:01hgbotStatusscheduled => closed
2025-01-20 12:01hgbotFixed in Version => 24Q4.1
2025-01-20 12:01hgbotNote Added: 0174385
2025-01-20 23:22hgbotNote Added: 0174429

Notes
(0174314)
hgbot   
2025-01-17 13:13   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1722 [^]
(0174320)
hgbot   
2025-01-17 13:26   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/3369 [^]
(0174382)
hgbot   
2025-01-20 12:01   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1722 [^]
(0174383)
hgbot   
2025-01-20 12:01   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/3369 [^]
(0174384)
hgbot   
2025-01-20 12:01   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 99942169497eb8282311bdfc7d2822ee47183be8
Author: Javier Armendáriz <j.armendariz@orisha.com>
Date: 17-01-2025 13:26:02
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/99942169497eb8282311bdfc7d2822ee47183be8 [^]

Related to ISSUE-57401: 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
---
(0174385)
hgbot   
2025-01-20 12:01   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: 8b2e4c43362b16697c48dd574c2272f6e51b1d38
Author: Javier Armendáriz <j.armendariz@orisha.com>
Date: 17-01-2025 13:11:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/8b2e4c43362b16697c48dd574c2272f6e51b1d38 [^]

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

---
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
---
(0174429)
hgbot   
2025-01-20 23:22   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: 5db3c74d0e87813490f84e685c55c5432a427fb5
Author: Javier Armendáriz <j.armendariz@orisha.com>
Date: 20-01-2025 23:22:04
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/5db3c74d0e87813490f84e685c55c5432a427fb5 [^]

Related to ISSUE-57401: Updating copyright notice to add the current year

---
M src/org/openbravo/core2/login/ApplicationDefaultAppMode.java
M src/org/openbravo/core2/login/Core2LoginHandlerApplicationModeResponse.java
M src/org/openbravo/core2/login/Core2LoginMobileAccessChecker.java
---