Openbravo Issue Tracking System - POS2
View Issue Details
0054921POS2Corepublic2024-03-12 10:592024-07-15 08:05
caristu 
eugen_hamuraru 
normalmajorhave not tried
closedfixed 
5
 
24Q4 
No
0054921: User actions defined in standalone infrastructure modules cannot be securized
User actions defined in standalone infrastructure modules cannot be securized.
0) In a POS2 environment, install the org.openbravo.authentication.webauthn. This is an "infrastructure module".
1) Go to the [Role] window, select a role
2) Go to the [User Action Access] subtab and create a new record
   - User Action: "Register User"
   - active: false
3) Login in backoffice as System Administrator, in Authentication Provider Configuration window create a new record (type: "Web Authentication", Application: "Sales Touchpoint", Authentication Flow: "Login and Approvals")
4) Login in the POS with the role selected in step 1)
5) Click in the user button at the top-right part of the window. In the popup that is opened, note that the "WebAuthn Register" button is available (not disabled) although we should not have access to the "Register User" user action that this button triggers.
No tags attached.
related to defect 0054737 closed AugustoMauch POS2 Build process improvement: include missing dependencies, support standalone infrastructure modules 
related to defect 0055865 new Triage Platform Base Openbravo ERP Sources folder should not be accessed at runtime 
causes defect 0056053 closed Triage Platform Conn POS2 log error in GrantedUserActionsProvider 
Issue History
2024-03-12 10:59caristuNew Issue
2024-03-12 10:59caristuAssigned To => Triage Platform Base
2024-03-12 10:59caristuTriggers an Emergency Pack => No
2024-03-12 11:00caristuRelationship addedrelated to 0054737
2024-03-12 11:01caristuNote Added: 0162010
2024-03-12 11:01caristuSummaryUser actions defined in infrastructure modules cannot be securized => User actions defined in standalone infrastructure modules cannot be securized
2024-03-12 11:01caristuDescription Updatedbug_revision_view_page.php?rev_id=27671#r27671
2024-05-29 16:42adrianromeroAssigned ToTriage Platform Base => ignacio_deandres
2024-06-14 14:20adrianromeroAssigned Toignacio_deandres => eugen_hamuraru
2024-06-17 16:58eugen_hamuraruSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=28108#r28108
2024-06-24 12:23hgbotNote Added: 0166250
2024-06-24 12:28hgbotNote Added: 0166251
2024-06-25 10:26hgbotNote Added: 0166291
2024-06-28 12:35caristuRelationship addedrelated to 0055865
2024-07-15 08:05hgbotNote Added: 0166951
2024-07-15 08:05hgbotResolutionopen => fixed
2024-07-15 08:05hgbotStatusnew => closed
2024-07-15 08:05hgbotFixed in Version => 24Q4
2024-07-15 08:05hgbotNote Added: 0166952
2024-07-17 15:37alostaleRelationship addedcauses 0056053

Notes
(0162010)
caristu   
2024-03-12 11:01   
This is happening because standalone infrastructure modules are not being taken into account here[1]. User actions that belong to this kind of modules should also be taken into account.

[1] https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/blob/master/src/org/openbravo/core2/login/GrantedUserActionsProvider.java?ref_type=heads#L100 [^]
(0166250)
hgbot   
2024-06-24 12:23   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1525 [^]
(0166251)
hgbot   
2024-06-24 12:28   
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/1283 [^]
(0166291)
hgbot   
2024-06-25 10:26   
Merge request closed: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/1283 [^]
(0166951)
hgbot   
2024-07-15 08:05   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1525 [^]
(0166952)
hgbot   
2024-07-15 08:05   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: afd7ec2d7f2043b944890399e538616bdec5a638
Author: Eugen Hamuraru <eugen.hamuraru@openbravo.com>
Date: 15-07-2024 06:05:35
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/afd7ec2d7f2043b944890399e538616bdec5a638 [^]

Fixes BUG-54921: user actions of infrastructure modules cannot be securized

---
M src/org/openbravo/core2/build/ModuleInfoGenerator.java
M src/org/openbravo/core2/build/ProductionBundleBuilder.java
M src/org/openbravo/core2/build/ReactBuildUtils.java
M src/org/openbravo/core2/login/GrantedUserActionsProvider.java
M web-jspack/org.openbravo.core2/src/core/authentication/InitializeAppData.js
---