Openbravo Issue Tracking System - Modules
View Issue Details
0040020ModulesDistribution Orderspublic2019-01-23 19:002019-01-28 16:05
ngarcia 
AtulOpenbravo 
urgentmajoralways
closedfixed 
5
 
 
Sandrahuguet
0040020: HTTP code: 500 for URL when issuing a distribution order if the role does not have access to receipt's warehouse's organization
HTTP code: 500 for URL when issuing a distribution order if the role does not have access to receipt's warehouse's organization

Transport error - HTTP code: 500 for URL: /retail_modules_pgsql_pi/org.openbravo.client.kernel
As group admin role:
   Apply module's dataset
   Leave the role access only to 'F&B España - Región Norte' organization
   Create a Distribution Order Issue
      Org: F&B España - Región Norte
      Warehouse Issue: España Región Norte
      Warehouse Receipt: España Región Sur
   Book it

   Create Issue Distribution Order:
      Org: F&B España - Región Norte
      Distribution Order: select the previously created one
      In transit bin: RN-Dev
   Generate Issue and Done

   Check the following error is shown:
      Transport error - HTTP code: 500 for URL: /retail_modules_pgsql_pi/org.openbravo.client.kernel

The log shows:

ERROR org.openbravo.base.exception.OBSecurityException - Organization DC206C91AA6A4897B44DA897936E0EC3 of object (OBDO_DistributionOrderLine(95A662EF272C4B2499E35EEE3495D220) (distributionOrder: E9F04676E11C40C181638DAA429E1666, lineNo: 10)) is not present in OrganizationList [0, E443A31992CB4635AFCAEABE7183CE85]
      
No tags attached.
related to defect 0038793 closed dmiguelez Not possible to close a Distribution Order Receipt because role permissions 
Issue History
2019-01-23 19:00ngarciaNew Issue
2019-01-23 19:00ngarciaAssigned To => Triage Finance
2019-01-23 19:00ngarciaResolution time => 1550012400
2019-01-23 19:00ngarciaIssue Monitored: networkb
2019-01-24 10:12SandrahuguetAssigned ToTriage Finance => AtulOpenbravo
2019-01-24 14:44ngarciaRelationship addedrelated to 0038793
2019-01-25 07:28AtulOpenbravoStatusnew => scheduled
2019-01-25 07:28AtulOpenbravoNote Added: 0109242
2019-01-28 16:02hgbotCheckin
2019-01-28 16:02hgbotNote Added: 0109278
2019-01-28 16:03hgbotStatusscheduled => resolved
2019-01-28 16:03hgbotResolutionopen => fixed
2019-01-28 16:03hgbotFixed in SCM revision => http://code.openbravo.com/erp/mods/org.openbravo.distributionorder/rev/f038881b80e26105fc816bcbb3ec55cd3b677e6a [^]
2019-01-28 16:03hgbotCheckin
2019-01-28 16:03hgbotNote Added: 0109279
2019-01-28 16:05SandrahuguetReview Assigned To => Sandrahuguet
2019-01-28 16:05SandrahuguetNote Added: 0109280
2019-01-28 16:05SandrahuguetStatusresolved => closed

Notes
(0109242)
AtulOpenbravo   
2019-01-25 07:28   
- Login as group admin role:
- Apply module's dataset
- Create a manual role having access only to 'F&B España - Región Norte' organization. Log out and Login with above role.
- Create a Distribution Order Issue
      Org: F&B España - Región Norte
      Warehouse Issue: España Región Norte
      Warehouse Receipt: España Región Sur
  Book it
- Create Issue Distribution Order:
      Org: F&B España - Región Norte
      Distribution Order: select the previously created one
      In transit bin: RN-Dev
   Generate Issue and Done
- Realize that process is completed successfully.
(0109278)
hgbot   
2019-01-28 16:02   
Repository: erp/mods/org.openbravo.distributionorder
Changeset: f038881b80e26105fc816bcbb3ec55cd3b677e6a
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Fri Jan 25 11:55:45 2019 +0530
URL: http://code.openbravo.com/erp/mods/org.openbravo.distributionorder/rev/f038881b80e26105fc816bcbb3ec55cd3b677e6a [^]

Fixes Issue 0040020: HTTP code: 500 for URL when issuing a
distribution order if the role does not have access to receipt's
warehouse's organization

** Use setAdminMode(false) in updateDistributionOrder method of
DistributionOrderUtils & restoring previous mode in finally block.

** OBDal.getInstance().flush() was missing after the while loop
in updateDistributionOrder as flush in the while loop was done
conditionally as it missed when the condition was not achieved.

---
M src/org/openbravo/distributionorder/erpCommon/utility/DistributioOrderUtils.java
---
(0109279)
hgbot   
2019-01-28 16:03   
Repository: erp/mods/org.openbravo.distributionorder
Changeset: 181f1921fd067eecb471f2dcb2ef63bdcb7aa133
Author: Sandra Huguet <sandra.huguet <at> openbravo.com>
Date: Mon Jan 28 15:44:14 2019 +0100
URL: http://code.openbravo.com/erp/mods/org.openbravo.distributionorder/rev/181f1921fd067eecb471f2dcb2ef63bdcb7aa133 [^]

related to issue 40020 applied new formatting

---
M src/org/openbravo/distributionorder/erpCommon/utility/DistributioOrderUtils.java
---
(0109280)
Sandrahuguet   
2019-01-28 16:05   
Code review + testing OK