Openbravo Issue Tracking System - POS2 |
| View Issue Details |
|
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0052885 | POS2 | Core | public | 2023-06-26 16:55 | 2023-06-29 09:35 |
|
| Reporter | AugustoMauch | |
| Assigned To | AugustoMauch | |
| Priority | normal | Severity | major | Reproducibility | have not tried |
| Status | closed | Resolution | fixed | |
| Platform | | OS | 5 | OS Version | |
| Product Version | | |
| Target Version | 23Q1.4 | Fixed in Version | | |
| Merge Request Status | approved |
| Review Assigned To | |
| OBNetwork customer | No |
| Support ticket | |
| Regression level | |
| Regression date | |
| Regression introduced in release | |
| Regression introduced by commit | |
| Triggers an Emergency Pack | No |
|
| Summary | 0052885: e.permissions is not iterable error when trying to log in |
| Description | Under some circumstances, not clear yet, a "e.permissions is not iterable" error is displayed when trying to log in.
The problem seems to be caused by the application not being consistent when checking if a user has already logged in. Here [1] it checks if the session is active by checking if the logged user is not System, while here [2] it does it by checking if the user has a valid session. There are time where [2] evalues to true by [1] evaluates to false, resulting in the "e.permissions is not iterable" error.
To address the problem we will make sure the same condition (a combination of [1] and [2]) is checked in both places.
[1] https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/blob/master/src/org/openbravo/core2/login/Core2LoginUtilsServlet.java#L61 [^]
[2] https://gitlab.com/openbravo/product/pmods/org.openbravo.mobile.core/-/blob/master/src/org/openbravo/mobile/core/login/MobileCoreLoginUtilsServlet.java#L88 [^] |
| Steps To Reproduce | No steps to reproduce where found. |
| Proposed Solution | |
| Additional Information | |
| Tags | No tags attached. |
| Relationships | | blocks | defect | 0052852 | | closed | AugustoMauch | e.permissions is not iterable error when trying to log in |
|
| Attached Files | |
|
| Issue History |
| Date Modified | Username | Field | Change |
| 2023-06-29 09:31 | AugustoMauch | Type | defect => backport |
| 2023-06-29 09:31 | AugustoMauch | Target Version | => 23Q1.4 |
| 2023-06-29 09:33 | hgbot | Note Added: 0151798 | |
| 2023-06-29 09:35 | hgbot | Note Added: 0151799 | |
| 2023-06-29 09:35 | hgbot | Resolution | open => fixed |
| 2023-06-29 09:35 | hgbot | Status | scheduled => closed |
| 2023-06-29 09:35 | hgbot | Note Added: 0151800 | |
| 2023-06-29 09:35 | hgbot | Fixed in Version | => 23Q1.4 |
| 2023-06-29 09:35 | hgbot | Note Added: 0151801 | |
| 2023-06-29 09:35 | hgbot | Fixed in Version | 23Q1.4 => RR23Q1.4 |
| 2023-06-29 09:35 | hgbot | Note Added: 0151802 | |
| 2023-06-29 09:35 | hgbot | Note Added: 0151803 | |
|
Notes |
|
|
(0151798)
|
|
hgbot
|
|
2023-06-29 09:33
|
|
|
|
|
(0151799)
|
|
hgbot
|
|
2023-06-29 09:35
|
|
|
|
|
(0151800)
|
|
hgbot
|
|
2023-06-29 09:35
|
|
|
|
|
(0151801)
|
|
hgbot
|
|
2023-06-29 09:35
|
|
|
|
|
(0151802)
|
|
hgbot
|
|
2023-06-29 09:35
|
|
|
|
|
(0151803)
|
|
hgbot
|
|
2023-06-29 09:35
|
|
|