Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0036807Openbravo ERPA. Platformpublic2017-09-07 19:092017-09-12 10:56
caristu 
caristu 
highminorN/A
closedfixed 
5
 
 
alostale
Core
No
0036807: API Change: remove AuthenticationManager.username field
As stated in issue 0035164 AuthenticationManager.username is thread unsafe.

This variable is used to keep the name of the user that fired the request in order to store this name as part of the DB session information.

To fix this issue that field will be removed and replaced with a ThreadLocal variable which will provide an independently initialized copy of the variable per thread.

As the AuthenticationManager.username is a protected field, its removal is an API change.
In description
Approved
blocks defect 0035164 closed caristu AuthenticationManager.username thread unsafe 
Issue History
2017-09-07 19:09caristuNew Issue
2017-09-07 19:09caristuAssigned To => caristu
2017-09-07 19:09caristuModules => Core
2017-09-07 19:09caristuTriggers an Emergency Pack => No
2017-09-07 19:09caristuRelationship addedblocks 0035164
2017-09-07 19:10caristuDescription Updatedbug_revision_view_page.php?rev_id=15845#r15845
2017-09-08 07:13alostaleNote Added: 0098892
2017-09-08 07:14alostaleTag Attached: Approved
2017-09-08 08:31caristuNote Added: 0098896
2017-09-08 13:12hgbotCheckin
2017-09-08 13:12hgbotNote Added: 0098910
2017-09-08 13:12hgbotStatusnew => resolved
2017-09-08 13:12hgbotResolutionopen => fixed
2017-09-08 13:12hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/api-checks/rev/00535db6ce2809dcd86dc1ee1a328dffe8701fd1 [^]
2017-09-08 13:12hgbotCheckin
2017-09-08 13:12hgbotNote Added: 0098911
2017-09-08 13:12caristuReview Assigned To => alostale
2017-09-08 13:15caristuNote Deleted: 0098911
2017-09-08 13:55hgbotCheckin
2017-09-08 13:55hgbotNote Added: 0098914
2017-09-11 08:41hgbotCheckin
2017-09-11 08:41hgbotNote Added: 0098924
2017-09-11 11:58hgbotCheckin
2017-09-11 11:58hgbotNote Added: 0098934
2017-09-12 09:30hgbotCheckin
2017-09-12 09:30hgbotNote Added: 0098964
2017-09-12 09:31hgbotCheckin
2017-09-12 09:31hgbotNote Added: 0098965
2017-09-12 10:56alostaleStatusresolved => closed

Notes
(0098892)
alostale   
2017-09-08 07:13   
Is there any known module implementing an AuthenticationManager using this field?
(0098896)
caristu   
2017-09-08 08:31   
Looked for at the central repository and found just one.
(0098910)
hgbot   
2017-09-08 13:12   
Repository: erp/devel/api-checks
Changeset: 00535db6ce2809dcd86dc1ee1a328dffe8701fd1
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Fri Sep 08 13:11:28 2017 +0200
URL: http://code.openbravo.com/erp/devel/api-checks/rev/00535db6ce2809dcd86dc1ee1a328dffe8701fd1 [^]

fixes issue 36807: remove AuthenticationManager.username field

---
M java/reference/java.japi.gz
---
(0098914)
hgbot   
2017-09-08 13:55   
Repository: erp/devel/api-checks
Changeset: 4a877e1bb59cbc57844c488f2b1dee22eedff3aa
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Fri Sep 08 13:55:09 2017 +0200
URL: http://code.openbravo.com/erp/devel/api-checks/rev/4a877e1bb59cbc57844c488f2b1dee22eedff3aa [^]

related to issue 36807: updated loginName definition as static

---
M java/reference/java.japi.gz
---
(0098924)
hgbot   
2017-09-11 08:41   
Repository: retail/api-checks-retail
Changeset: 8921be9ec35573d147ac8b1288610a2ed0795297
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Mon Sep 11 08:40:38 2017 +0200
URL: http://code.openbravo.com/retail/api-checks-retail/rev/8921be9ec35573d147ac8b1288610a2ed0795297 [^]

related to issue 36807: remove AuthenticationManager.username field

---
M java/reference/java.japi.gz
---
(0098934)
hgbot   
2017-09-11 11:58   
Repository: retail/api-checks-retail
Changeset: 6691c0637cd194628c2db697fd0da1ccb8966d72
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Mon Sep 11 11:57:24 2017 +0200
URL: http://code.openbravo.com/retail/api-checks-retail/rev/6691c0637cd194628c2db697fd0da1ccb8966d72 [^]

related to issue 36807: remove AuthenticationManager.username field

---
M java/reference/java.japi.gz
---
(0098964)
hgbot   
2017-09-12 09:30   
Repository: erp/devel/api-checks
Changeset: 68700241123347743152d9f2aac134dfdfe0f995
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Tue Sep 12 09:26:44 2017 +0200
URL: http://code.openbravo.com/erp/devel/api-checks/rev/68700241123347743152d9f2aac134dfdfe0f995 [^]

related to issue 36807: api changes after code review
  - Changed signature of AuthenticationManager.decodeBasicAuthenticationData method
  - Removed AuthenticationManager.LOGIN_PASS and AuthenticationManager.LOGIN_USER which are no longer needed

---
M java/reference/java.japi.gz
---
(0098965)
hgbot   
2017-09-12 09:31   
Repository: retail/api-checks-retail
Changeset: 5655e698af447f2b1dbf0f81dac388211d870e82
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Tue Sep 12 09:27:39 2017 +0200
URL: http://code.openbravo.com/retail/api-checks-retail/rev/5655e698af447f2b1dbf0f81dac388211d870e82 [^]

related to issue 36807: api changes after code review
  - Changed signature of AuthenticationManager.decodeBasicAuthenticationData method
  - Removed AuthenticationManager.LOGIN_PASS and AuthenticationManager.LOGIN_USER which are no longer needed

---
M java/reference/java.japi.gz
---