[ 
https://issues.apache.org/jira/browse/OFBIZ-12211?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17310505#comment-17310505
 ] 

Jacques Le Roux edited comment on OFBIZ-12211 at 3/29/21, 9:05 AM:
-------------------------------------------------------------------

Actually apart the errors fixed in OFBIZ-11604 the relevant part in log was:

bq. 2021-03-28 20:08:55,887 |jsse-nio-8443-exec-9 |SecuredUpload |E| Uploaded 
file should contain only Alpha-Numeric characters, only 1 dot as an input for 
the file name and the extension.The file name and extension should not be empty 
at all

Because the addImageForProduct  process is not directly uploading a file but 
renames it before. 

So there is a hyphen ([and not a dash as I just 
learned|https://www.grammarly.com/blog/hyphens-and-dashes/]), and possibly a 
pair or parenthesis added to the file name, in case of duplicate files.


was (Author: jacques.le.roux):
Actually apart the errors fixed in OFBIZ-11604 the relevant part in log was:

bq. 2021-03-28 20:08:55,887 |jsse-nio-8443-exec-9 |SecuredUpload |E| Uploaded 
file should contain only Alpha-Numeric characters, only 1 dot as an input for 
the file name and the extension.The file name and extension should not be empty 
at all

Because the addImageForProduct  process is not directly uploading a file but 
renames it before. 

So there is a hyphen ([and not a dash as I just 
learned|https://www.grammarly.com/blog/hyphens-and-dashes/]) and possibly a 
pair or parenthesis in case of duplicate files.

> addImageForProduct fails
> ------------------------
>
>                 Key: OFBIZ-12211
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-12211
>             Project: OFBiz
>          Issue Type: Bug
>          Components: product/catalog
>    Affects Versions: 18.12.01, Trunk
>            Reporter: Jacques Le Roux
>            Assignee: Jacques Le Roux
>            Priority: Major
>
> At catalog/control/addImageForProduct you get this error (the R17 branch is 
> not concerned):
> The Following Errors Occurred:
>  Error calling event: org.apache.ofbiz.webapp.event.EventHandlerException: 
> Service invocation error (org.apache.ofbiz.service.ExecutionServiceException: 
> Service [createContentAssoc] Failed (null))
> In log (relevant parts):
> {noformat}
> 2021-03-28 12:57:56,829 |jsse-nio-8443-exec-9 |UtilProperties                
> |I| ResourceBundle ServiceErrorUiLabels (en) created in 0.05s with 40 
> properties
> 2021-03-28 12:57:56,829 |jsse-nio-8443-exec-9 |ServiceDispatcher             
> |E| Incoming context (in runSync : updateContent) does not match expected 
> requirements
> org.apache.ofbiz.service.ServiceValidationException: The following required 
> parameter is missing: [updateContent.contentId]
>         at 
> org.apache.ofbiz.service.ModelService.validate(ModelService.java:1194) 
> ~[main/:?]
>         at 
> org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:403)
>  [main/:?]
>         at 
> org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:240)
>  [main/:?]
>         at 
> org.apache.ofbiz.service.GenericDispatcherFactory$GenericDispatcher.runSync(GenericDispatcherFactory.java:93)
>  [main/:?]
>         at 
> org.apache.ofbiz.product.imagemanagement.ImageManagementServices.createContentAndDataResource(ImageManagementServices.java:476)
>  [main/:?]
>         at 
> org.apache.ofbiz.product.imagemanagement.ImageManagementServices.addMultipleuploadForProduct(ImageManagementServices.java:225)
>  [main/:?]
> [...]
> 2021-03-28 12:57:56,846 |jsse-nio-8443-exec-9 |ServiceUtil                   
> |E| {errorMessage=The following required parameter is missing: 
> [updateContent.contentId], responseMessage=error}
> [...]
> 2021-03-28 12:57:56,926 |jsse-nio-8443-exec-9 |ImageManagementServices       
> |E| null
> org.apache.ofbiz.service.GenericServiceException: Service 
> [createContentAssoc] Failed (null)
>         at 
> org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:563)
>  ~[main/:?]
>         at 
> org.apache.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:240)
>  ~[main/:?]
>         at 
> org.apache.ofbiz.service.GenericDispatcherFactory$GenericDispatcher.runSync(GenericDispatcherFactory.java:93)
>  ~[main/:?]
>         at 
> org.apache.ofbiz.product.imagemanagement.ImageManagementServices.addMultipleuploadForProduct(ImageManagementServices.java:234)
>  [main/:?]
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
> ~[?:1.8.0_202]
> [...]
> 2021-03-28 12:57:56,927 |jsse-nio-8443-exec-9 |ServiceUtil                   
> |E| {errorMessage=Service [createContentAssoc] Failed (null), 
> responseMessage=error}
> 2021-03-28 12:57:56,928 |jsse-nio-8443-exec-9 |ServiceDispatcher             
> |E| Error in Service [addMultipleuploadForProduct]: Service 
> [createContentAssoc] Failed (null)
> 2021-03-28 12:57:56,928 |jsse-nio-8443-exec-9 |TransactionUtil               
> |I| Transaction rollback only not set, rollback only is already set.
> 2021-03-28 12:57:56,928 |jsse-nio-8443-exec-9 |ServiceDispatcher             
> |T| Sync service [catalog/addMultipleuploadForProduct] finished in [8207] 
> milliseconds
> 2021-03-28 12:57:56,951 |jsse-nio-8443-exec-9 |ServiceDispatcher             
> |T| [[Sync service failed...- total:0.0,since last(Begin):0.0]] - 'catalog / 
> multipleUploadProductImages'
> 2021-03-28 12:57:57,012 |jsse-nio-8443-exec-9 |TransactionUtil               
> |I| Transaction rolled back
> 2021-03-28 12:57:57,013 |jsse-nio-8443-exec-9 |TransactionUtil               
> |W| Not committing transaction, status is No Transaction (6)
> 2021-03-28 12:57:57,013 |jsse-nio-8443-exec-9 |ServiceEventHandler           
> |E| Service invocation error
> org.apache.ofbiz.service.GenericServiceException: Error running Groovy method 
> [uploadProductImages] in Groovy file 
> [component://product/groovyScripts/product/imagemanagement/ImageManagementServices.groovy]:
>   (org.apache.ofbiz.service.Exe
> cutionServiceException: Service [createContentAssoc] Failed (null))
> [...]
> Caused by: org.codehaus.groovy.runtime.InvokerInvocationException: 
> org.apache.ofbiz.service.ExecutionServiceException: Service 
> [createContentAssoc] Failed (null)
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to