Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||
ID | |||||||||||
0050309 | |||||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||||
defect | [Modules] Integration with Amazon S3 | minor | always | 2022-09-22 10:37 | 2022-10-24 18:14 | ||||||
Reporter | Carlos Sousa | View Status | public | ||||||||
Assigned To | Triage Platform Conn | ||||||||||
Priority | normal | Resolution | open | Fixed in Version | |||||||
Status | acknowledged | Fix in branch | Fixed in SCM revision | ||||||||
Projection | none | ETA | none | Target Version | |||||||
OS | Linux 64 bit | Database | PostgreSQL | Java version | openjdk 11.0.16 | ||||||
OS Version | Ubuntu 18.04 | Database version | 10 | Ant version | Apache Ant(TM) version 1.10.5 | ||||||
Product Version | SCM 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 | ||||||||||
Description | We 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 Reproduce | 1- 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 Solution | AmazonS3AttachImplementation 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 [^] | ||||||||||
Tags | No tags attached. | ||||||||||
Attached Files | |||||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |||||||||||||||||
|
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 |