[jira] [Commented] (OFBIZ-12101) partymgr fails to upload image

2021-01-31 Thread Wai (Jira)


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

Wai commented on OFBIZ-12101:
-

I've discovered that when down scaling the image from 105kB to 67kB, then the 
upload works well. This would imply another issue. Is there a limit to the size 
of images that ofbiz can accept?

> partymgr fails to upload image
> --
>
> Key: OFBIZ-12101
> URL: https://issues.apache.org/jira/browse/OFBIZ-12101
> Project: OFBiz
>  Issue Type: Bug
>  Components: party
>Affects Versions: Trunk
> Environment: OS: Ubuntu 20.04
> $ java -version
> java version "1.8.0_271"
> Java(TM) SE Runtime Environment (build 1.8.0_271-b09)
> Java HotSpot(TM) 64-Bit Server VM (build 25.271-b09, mixed mode)
>Reporter: Wai
>Assignee: Ankit Joshi
>Priority: Major
> Fix For: 18.12.01, 17.12.05
>
> Attachments: v.jpeg
>
>
> partymgr fails to upload image
>  
> Steps to reproduce issue:
> open https://localhost:8443/partymgr/control/viewprofile?partyId=admin
> in Party Content panel
>  select image to upload
>  select "Logo Image URL"
> click ok
> console output:
> 2020-12-25 16:24:06,533 |sse-nio-18443-exec-4 |UtilHttp |E| File upload 
> errororg.apache.commons.fileupload.FileUploadBase$IOFileUploadException: 
> Processing of multipart/form-data request failed. java.io.EOFException
> 2020-12-25 16:24:06,573 |sse-nio-18443-exec-4 |ModelService |I| Set default 
> value [DOCUMENT] for parameter [contentTypeId]
> 2020-12-25 16:24:06,661 |sse-nio-18443-exec-4 |UtilProperties |I| 
> ResourceBundle ServiceErrorUiLabels (en) created in 0.087s with 40 properties
> 2020-12-25 16:24:06,662 |sse-nio-18443-exec-4 |ModelService |E| 
> [ModelService.validate] : \{uploadPartyContentFile} : (IN) Required test 
> error: org.apache.ofbiz.service.ServiceValidationException: The following 
> required parameter is missing: [IN] 
> [uploadPartyContentFile.partyContentTypeId]
> 2020-12-25 16:24:06,662 |sse-nio-18443-exec-4 |ServiceDispatcher |E| Incoming 
> context (in runSync : uploadPartyContentFile) does not match expected 
> requirements
> org.apache.ofbiz.service.ServiceValidationException: The following required 
> parameter is missing: [IN] [uploadPartyContentFile.partyContentTypeId]
>  at org.apache.ofbiz.service.ModelService.validate(ModelService.java:1305) 
> ~[main/:?]



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


[jira] [Comment Edited] (OFBIZ-12101) partymgr fails to upload image

2021-01-31 Thread Wai (Jira)


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

Wai edited comment on OFBIZ-12101 at 1/31/21, 8:32 PM:
---

Image upload issue persists. Following the same steps to reproduce the issue. 
Notice that once this issue happens, the callback never stops. I notice that it 
happens with this particular image. I've uploaded the image v.jpeg

 

2021-01-31 15:25:15,572 |sse-nio-8443-exec-11 |UtilHttp |E| File upload 
errororg.apache.commons.fileupload.FileUploadBase$IOFileUploadException: 
Processing of multipart/form-data request failed. java.io.EOFException
 2021-01-31 15:25:15,573 |sse-nio-8443-exec-11 |ModelService |I| Set default 
value [DOCUMENT] for parameter [contentTypeId]
 2021-01-31 15:25:15,620 |sse-nio-8443-exec-11 |UtilProperties |I| 
ResourceBundle ServiceErrorUiLabels (en_US) created in 0.047s with 40 properties
 2021-01-31 15:25:15,621 |sse-nio-8443-exec-11 |ModelService |E| 
[ModelService.validate] : \{uploadPartyContentFile} : (IN) Required test error: 
org.apache.ofbiz.service.ServiceValidationException: The following required 
parameter is missing: [IN] [uploadPartyContentFile.partyContentTypeId]
 2021-01-31 15:25:15,621 |sse-nio-8443-exec-11 |ServiceDispatcher |E| Incoming 
context (in runSync : uploadPartyContentFile) does not match expected 
requirements
 org.apache.ofbiz.service.ServiceValidationException: The following required 
parameter is missing: [IN] [uploadPartyContentFile.partyContentTypeId]
 at org.apache.ofbiz.service.ModelService.validate(ModelService.java:1305) 
~[main/:?]
 at org.apache.ofbiz.service.ModelService.validate(ModelService.java:1219) 
~[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.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:253)
 [main/:?]
 at 
org.apache.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:1013)
 [main/:?]
 at 
org.apache.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:664)
 [main/:?]

...

2021-01-31 15:25:15,572 |sse-nio-8443-exec-11 |UtilHttp |E| File upload 
errororg.apache.commons.fileupload.FileUploadBase$IOFileUploadException: 
Processing of multipart/form-data request failed. java.io.EOFException
 2021-01-31 15:25:15,573 |sse-nio-8443-exec-11 |ModelService |I| Set default 
value [DOCUMENT] for parameter [contentTypeId]
 2021-01-31 15:25:15,620 |sse-nio-8443-exec-11 |UtilProperties |I| 
ResourceBundle ServiceErrorUiLabels (en_US) created in 0.047s with 40 properties
 2021-01-31 15:25:15,621 |sse-nio-8443-exec-11 |ModelService |E| 
[ModelService.validate] : \{uploadPartyContentFile} : (IN) Required test error: 
org.apache.ofbiz.service.ServiceValidationException: The following required 
parameter is missing: [IN] [uploadPartyContentFile.partyContentTypeId]
 2021-01-31 15:25:15,621 |sse-nio-8443-exec-11 |ServiceDispatcher |E| Incoming 
context (in runSync : uploadPartyContentFile) does not match expected 
requirements
 org.apache.ofbiz.service.ServiceValidationException: The following required 
parameter is missing: [IN] [uploadPartyContentFile.partyContentTypeId]
 at org.apache.ofbiz.service.ModelService.validate(ModelService.java:1305) 
~[main/:?]
 at org.apache.ofbiz.service.ModelService.validate(ModelService.java:1219) 
~[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.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:253)
 [main/:?]
 at 
org.apache.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:1013)
 [main/:?]
 at 
org.apache.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:664)
 [main/:?]

...

2021-01-31 15:25:15,651 |sse-nio-8443-exec-11 |ServerHitBin |I| Visit 
delegatorName=default, ServerHitBin delegatorName=default
 2021-01-31 15:25:15,676 |sse-nio-8443-exec-11 |ControlServlet |T| 
[[[partymgr::uploadPartyContent (Domain:https://localhost)] Request Done- 
total:0.286,since last([partymgr::upload...):0.286]]
 2021-01-31 15:25:16,426 |jsse-nio-8443-exec-4 |ControlServlet |T| 
[[[partymgr::getFileUploadProgressStatus (Domain:https://localhost)] Request 
Begun, encoding=[UTF-8]- total:0.0,since last(Begin):0.0]]
 2021-01-31 15:25:17,264 |jsse-nio-8443-exec-4 |ServiceDispatcher |T| Sync 
service [partymgr/getFileUploadProgressStatus] finished in [827] milliseconds
 2021-01-31 

[jira] [Updated] (OFBIZ-12101) partymgr fails to upload image

2021-01-31 Thread Wai (Jira)


 [ 
https://issues.apache.org/jira/browse/OFBIZ-12101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Wai updated OFBIZ-12101:

Attachment: v.jpeg

> partymgr fails to upload image
> --
>
> Key: OFBIZ-12101
> URL: https://issues.apache.org/jira/browse/OFBIZ-12101
> Project: OFBiz
>  Issue Type: Bug
>  Components: party
>Affects Versions: Trunk
> Environment: OS: Ubuntu 20.04
> $ java -version
> java version "1.8.0_271"
> Java(TM) SE Runtime Environment (build 1.8.0_271-b09)
> Java HotSpot(TM) 64-Bit Server VM (build 25.271-b09, mixed mode)
>Reporter: Wai
>Assignee: Ankit Joshi
>Priority: Major
> Fix For: 18.12.01, 17.12.05
>
> Attachments: v.jpeg
>
>
> partymgr fails to upload image
>  
> Steps to reproduce issue:
> open https://localhost:8443/partymgr/control/viewprofile?partyId=admin
> in Party Content panel
>  select image to upload
>  select "Logo Image URL"
> click ok
> console output:
> 2020-12-25 16:24:06,533 |sse-nio-18443-exec-4 |UtilHttp |E| File upload 
> errororg.apache.commons.fileupload.FileUploadBase$IOFileUploadException: 
> Processing of multipart/form-data request failed. java.io.EOFException
> 2020-12-25 16:24:06,573 |sse-nio-18443-exec-4 |ModelService |I| Set default 
> value [DOCUMENT] for parameter [contentTypeId]
> 2020-12-25 16:24:06,661 |sse-nio-18443-exec-4 |UtilProperties |I| 
> ResourceBundle ServiceErrorUiLabels (en) created in 0.087s with 40 properties
> 2020-12-25 16:24:06,662 |sse-nio-18443-exec-4 |ModelService |E| 
> [ModelService.validate] : \{uploadPartyContentFile} : (IN) Required test 
> error: org.apache.ofbiz.service.ServiceValidationException: The following 
> required parameter is missing: [IN] 
> [uploadPartyContentFile.partyContentTypeId]
> 2020-12-25 16:24:06,662 |sse-nio-18443-exec-4 |ServiceDispatcher |E| Incoming 
> context (in runSync : uploadPartyContentFile) does not match expected 
> requirements
> org.apache.ofbiz.service.ServiceValidationException: The following required 
> parameter is missing: [IN] [uploadPartyContentFile.partyContentTypeId]
>  at org.apache.ofbiz.service.ModelService.validate(ModelService.java:1305) 
> ~[main/:?]



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


[jira] [Reopened] (OFBIZ-12101) partymgr fails to upload image

2021-01-31 Thread Wai (Jira)


 [ 
https://issues.apache.org/jira/browse/OFBIZ-12101?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Wai reopened OFBIZ-12101:
-

Image upload issue persists. Following the same steps to reproduce the issue. 
Notice that once this issue happens, the callback never stops. I notice that it 
happens with this particular image

 

2021-01-31 15:25:15,572 |sse-nio-8443-exec-11 |UtilHttp |E| File upload 
errororg.apache.commons.fileupload.FileUploadBase$IOFileUploadException: 
Processing of multipart/form-data request failed. java.io.EOFException
2021-01-31 15:25:15,573 |sse-nio-8443-exec-11 |ModelService |I| Set default 
value [DOCUMENT] for parameter [contentTypeId]
2021-01-31 15:25:15,620 |sse-nio-8443-exec-11 |UtilProperties |I| 
ResourceBundle ServiceErrorUiLabels (en_US) created in 0.047s with 40 properties
2021-01-31 15:25:15,621 |sse-nio-8443-exec-11 |ModelService |E| 
[ModelService.validate] : \{uploadPartyContentFile} : (IN) Required test error: 
org.apache.ofbiz.service.ServiceValidationException: The following required 
parameter is missing: [IN] [uploadPartyContentFile.partyContentTypeId]
2021-01-31 15:25:15,621 |sse-nio-8443-exec-11 |ServiceDispatcher |E| Incoming 
context (in runSync : uploadPartyContentFile) does not match expected 
requirements
org.apache.ofbiz.service.ServiceValidationException: The following required 
parameter is missing: [IN] [uploadPartyContentFile.partyContentTypeId]
 at org.apache.ofbiz.service.ModelService.validate(ModelService.java:1305) 
~[main/:?]
 at org.apache.ofbiz.service.ModelService.validate(ModelService.java:1219) 
~[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.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:253)
 [main/:?]
 at 
org.apache.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:1013)
 [main/:?]
 at 
org.apache.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:664)
 [main/:?]

...

2021-01-31 15:25:15,572 |sse-nio-8443-exec-11 |UtilHttp |E| File upload 
errororg.apache.commons.fileupload.FileUploadBase$IOFileUploadException: 
Processing of multipart/form-data request failed. java.io.EOFException
2021-01-31 15:25:15,573 |sse-nio-8443-exec-11 |ModelService |I| Set default 
value [DOCUMENT] for parameter [contentTypeId]
2021-01-31 15:25:15,620 |sse-nio-8443-exec-11 |UtilProperties |I| 
ResourceBundle ServiceErrorUiLabels (en_US) created in 0.047s with 40 properties
2021-01-31 15:25:15,621 |sse-nio-8443-exec-11 |ModelService |E| 
[ModelService.validate] : \{uploadPartyContentFile} : (IN) Required test error: 
org.apache.ofbiz.service.ServiceValidationException: The following required 
parameter is missing: [IN] [uploadPartyContentFile.partyContentTypeId]
2021-01-31 15:25:15,621 |sse-nio-8443-exec-11 |ServiceDispatcher |E| Incoming 
context (in runSync : uploadPartyContentFile) does not match expected 
requirements
org.apache.ofbiz.service.ServiceValidationException: The following required 
parameter is missing: [IN] [uploadPartyContentFile.partyContentTypeId]
 at org.apache.ofbiz.service.ModelService.validate(ModelService.java:1305) 
~[main/:?]
 at org.apache.ofbiz.service.ModelService.validate(ModelService.java:1219) 
~[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.webapp.event.ServiceEventHandler.invoke(ServiceEventHandler.java:253)
 [main/:?]
 at 
org.apache.ofbiz.webapp.control.RequestHandler.runEvent(RequestHandler.java:1013)
 [main/:?]
 at 
org.apache.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:664)
 [main/:?]

...

2021-01-31 15:25:15,651 |sse-nio-8443-exec-11 |ServerHitBin |I| Visit 
delegatorName=default, ServerHitBin delegatorName=default
2021-01-31 15:25:15,676 |sse-nio-8443-exec-11 |ControlServlet |T| 
[[[partymgr::uploadPartyContent (Domain:https://localhost)] Request Done- 
total:0.286,since last([partymgr::upload...):0.286]]
2021-01-31 15:25:16,426 |jsse-nio-8443-exec-4 |ControlServlet |T| 
[[[partymgr::getFileUploadProgressStatus (Domain:https://localhost)] Request 
Begun, encoding=[UTF-8]- total:0.0,since last(Begin):0.0]]
2021-01-31 15:25:17,264 |jsse-nio-8443-exec-4 |ServiceDispatcher |T| Sync 
service [partymgr/getFileUploadProgressStatus] finished in [827] milliseconds
2021-01-31 15:25:17,265 |jsse-nio-8443-exec-4 |RequestHandler |I| Ran Event 
[service:#getFileUploadProgressStatus] from [request], result is [success]