Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0040020
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Modules] Distribution Ordersmajoralways2019-01-23 19:002019-01-28 16:05
ReporterngarciaView Statuspublic 
Assigned ToAtulOpenbravo 
PriorityurgentResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revisionf038881b80e2
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Regression date
Regression introduced by commit
Regression level
Review Assigned ToSandrahuguet
Regression introduced in release
Summary

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

DescriptionHTTP 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
Steps To ReproduceAs 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]
      
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0038793 closeddmiguelez Not possible to close a Distribution Order Receipt because role permissions 

-  Notes
(0109242)
AtulOpenbravo (developer)
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 (developer)
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 (developer)
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 (developer)
2019-01-28 16:05

Code review + testing OK

- Issue History
Date Modified Username Field Change
2019-01-23 19:00 ngarcia New Issue
2019-01-23 19:00 ngarcia Assigned To => Triage Finance
2019-01-23 19:00 ngarcia Resolution time => 1550012400
2019-01-23 19:00 ngarcia Issue Monitored: networkb
2019-01-24 10:12 Sandrahuguet Assigned To Triage Finance => AtulOpenbravo
2019-01-24 14:44 ngarcia Relationship added related to 0038793
2019-01-25 07:28 AtulOpenbravo Status new => scheduled
2019-01-25 07:28 AtulOpenbravo Note Added: 0109242
2019-01-28 16:02 hgbot Checkin
2019-01-28 16:02 hgbot Note Added: 0109278
2019-01-28 16:03 hgbot Status scheduled => resolved
2019-01-28 16:03 hgbot Resolution open => fixed
2019-01-28 16:03 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/mods/org.openbravo.distributionorder/rev/f038881b80e26105fc816bcbb3ec55cd3b677e6a [^]
2019-01-28 16:03 hgbot Checkin
2019-01-28 16:03 hgbot Note Added: 0109279
2019-01-28 16:05 Sandrahuguet Review Assigned To => Sandrahuguet
2019-01-28 16:05 Sandrahuguet Note Added: 0109280
2019-01-28 16:05 Sandrahuguet Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker