Cross-tenant error when importing web service security records

Description

When you pack in a web service security record that includes web service access, a record on tenant X is inserted with a role from GardenWorld

Steps to reproduce:
1. Create a web service security record in Garden and give access to GardenAdmin and export it (attached zip).
2. Run the pack in with the zip file in a different client with no access to the GardenAdmin role -> the pack in is completed successfully.
3. Check the web service access record that was created, ad_role_id=102. And the record in the web service security window cannot be deleted or modified.

Environment

Activity

Show:
Diego Ruiz
October 28, 2019, 11:32 AM

Hi ,

 

Attached you can find the patch that solves this ticket.

 

Kind regards,

Diego Ruiz

Diego Ruiz
November 27, 2019, 2:53 PM

,

 

The patch from this ticket introduced a bug that breaks the import of records with attachments via 2pack.

The newly attached patch solves this bug.

 

Best regards,

Diego Ruiz

Carlos Ruiz
November 28, 2019, 12:37 PM

Commit https://bitbucket.org/idempiere/idempiere/commits/7513477
solves the issue with attachments - and other tables with Record_ID

Assignee

Diego Ruiz

Reporter

Diego Ruiz

Labels

None

Tested By

None

Affects versions

Priority

Major
Configure