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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0050309
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Modules] Integration with Amazon S3minoralways2022-09-22 10:372022-10-24 18:14
ReporterCarlos SousaView Statuspublic 
Assigned ToTriage Platform Conn 
PrioritynormalResolutionopenFixed in Version
StatusacknowledgedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSLinux 64 bitDatabasePostgreSQLJava versionopenjdk 11.0.16
OS VersionUbuntu 18.04Database version10Ant versionApache Ant(TM) version 1.10.5
Product VersionSCM revision 
Regression date
Regression introduced by commit
Regression level
Review Assigned To
Regression introduced in release
Summary

0050309: Cannot upload attachments to S3 in non system clients when the S3 attach configuration is defined at system client

DescriptionWe have noticed that in decathlon-eu-preprod when the module "Integration With Amazon S3"is configured with system administrator role and not at client level, we are not able to upload the attachments to s3 even the Verify Configuration message prints that is ok.

We can't use obas3_configuration neither c_attachment_conf if they are defined with client '0'

The error is the following one:

[http-10] ERROR org.openbravo.service.integration.amazon.s3.attachments.AmazonS3AttachImplementation - Error uploading attachment for record 21DA18CB63EBE60D7D7D1BFB1D99C875: Configuration can not be null

[http-10] ERROR org.openbravo.erpCommon.businessUtility.TabAttachments - Error uploading the file
org.openbravo.base.exception.OBException: It was
 not possible to upload the file. Please ensure that your Amazon S3 configuration is correct.

Steps To Reproduce1- Create a record in "Attachment Configuration" and "Amazon s3 configuration" windows with system administrator role
2- Switch the role to use another client (for example F&B International Group)
3- Try to upload an attachment for any record
Proposed SolutionAmazonS3AttachImplementation should be able to find if there exists an S3 attachment configuration defined at system level when there is not one for the current client.

See here: https://gitlab.com/openbravo/product/pmods/org.openbravo.service.integration.amazon.s3/-/blob/master/src/org/openbravo/service/integration/amazon/s3/attachments/AmazonS3AttachmentClient.java#L48 [^]
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0045329 acknowledgedTriage Platform Conn Modules Amazon S3 Migration Process background process does not take into account the configuration done at System level 
related to defect 0039553 closedcaristu Openbravo ERP Is not possible to define an specific attachment configuration if there is already one defined at system client 

-  Notes
(0141307)
adrianromero (manager)
2022-09-22 17:59

As explained in the documentation, the configuration must be done at client level, not system administrator level: http://wiki.openbravo.com/wiki/Module:Integration_With_Amazon_S3 [^]
(0142502)
caristu (manager)
2022-10-24 18:06
edited on: 2022-10-24 18:10

Issue acknowledged as core supports to define attachment configurations at system client level that can be shared by all the clients in the same instance. But the S3 module attachment implementation currently is not handling properly this case.

See here: https://gitlab.com/openbravo/product/pmods/org.openbravo.service.integration.amazon.s3/-/blob/master/src/org/openbravo/service/integration/amazon/s3/attachments/AmazonS3AttachmentClient.java#L48 [^]


- Issue History
Date Modified Username Field Change
2022-09-22 10:37 Carlos Sousa New Issue
2022-09-22 10:37 Carlos Sousa Assigned To => Triage Platform Conn
2022-09-22 17:59 adrianromero Note Added: 0141307
2022-09-22 17:59 adrianromero Status new => feedback
2022-10-24 17:48 caristu Relationship added related to 0045329
2022-10-24 17:51 caristu Relationship added related to 0039553
2022-10-24 17:57 caristu Steps to Reproduce Updated View Revisions
2022-10-24 18:02 caristu Status feedback => new
2022-10-24 18:06 caristu Note Added: 0142502
2022-10-24 18:06 caristu Status new => acknowledged
2022-10-24 18:06 caristu Note Edited: 0142502 View Revisions
2022-10-24 18:10 caristu Note Edited: 0142502 View Revisions
2022-10-24 18:11 caristu Proposed Solution updated
2022-10-24 18:14 caristu Summary Problem While uploading attachments to S3 when configure module with system administrator role => Cannot upload attachments to S3 in non system clients when the S3 attach configuration is defined at system client


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker