Orbeon Forms 2020.1 - Error uploading in new File Attachment control

5 views
Skip to first unread message

Pedro M.A.

unread,
Jan 20, 2021, 12:01:06 PM1/20/21
to orb...@googlegroups.com
Hello, I have updated to the latest Orbeon Forms 2020.1 version and it gives
this error when trying to load a file in the new control. This error occurs
in the docker environment and not on a localhost with tomcat. The previous
version did not give any problem in the docker environment. I attach the
error.
Thanks a lot.

2021-01-19 15:02:32,108 ERROR XFormsServer -
+----------------------------------------------------------------------------------------------------------------------+
|An Error has Occurred
|
|----------------------------------------------------------------------------------------------------------------------|
|Unexpected incoming value for `xf:upload`:
`file:/opt/tomcat/appsrv1/apache-tomcat-8.5.32/temp/xforms_upload_798558459|
|4589676341.tmp`
|
|----------------------------------------------------------------------------------------------------------------------|
|Application Call Stack
|
|----------------------------------------------------------------------------------------------------------------------|
|----------------------------------------------------------------------------------------------------------------------|
|Exception: org.orbeon.oxf.common.OXFException
|
|----------------------------------------------------------------------------------------------------------------------|
|eon.oxf.xforms.control.controls.XFormsUploadControl|storeExternalValueAndMetadata
|XFormsUploadControl.scala | 145|
|----------------------------------------------------------------------------------------------------------------------|
|Exception: org.orbeon.oxf.common.ValidationException
|
|----------------------------------------------------------------------------------------------------------------------|
|eon.oxf.xforms.control.controls.XFormsUploadControl|storeExternalValueAndMetadata
|XFormsUploadControl.scala | 202|
|eon.oxf.xforms.control.controls.XFormsUploadControl|handleUploadedFile
|XFormsUploadControl.scala | 126|
|eon.oxf.xforms.control.controls.XFormsUploadControl|performTargetAction
|XFormsUploadControl.scala | 90|
|org.orbeon.oxf.xforms.event.Dispatch$
|$anonfun$dispatchEvent$8 |Dispatch.scala | 116|
|scala.runtime.java8.JFunction0$mcV$sp |apply
|JFunction0$mcV$sp.java | 23|
|org.orbeon.oxf.util.Logging |withDebug
|Logging.scala | 50|
|org.orbeon.oxf.util.Logging |withDebug$
|Logging.scala | 45|
|org.orbeon.oxf.xforms.event.Dispatch$ |withDebug
|Dispatch.scala | 29|
|org.orbeon.oxf.xforms.event.Dispatch$
|$anonfun$dispatchEvent$5 |Dispatch.scala | 78|
|scala.runtime.java8.JFunction0$mcV$sp |apply
|JFunction0$mcV$sp.java | 23|
|org.orbeon.oxf.xforms.event.Dispatch$ |withEvent$1
|Dispatch.scala | 44|
|org.orbeon.oxf.xforms.event.Dispatch$ |dispatchEvent
|Dispatch.scala | 76|
|org.orbeon.oxf.xforms.event.ClientEvents$
|dispatchEventCheckTarget$1 |ClientEvents.scala | 374|
|org.orbeon.oxf.xforms.event.ClientEvents$ |$anonfun$processEvent$9
|ClientEvents.scala | 420|

--
Sent from: http://discuss.orbeon.com/

Alessandro Vernet

unread,
Jan 20, 2021, 9:03:14 PM1/20/21
to orb...@googlegroups.com
Hi Pedro,

What have you set your temporary directory to be (value of the
`java.io.tmpdir` property)? Is it by any chance something different than
`/opt/tomcat/appsrv1/apache-tomcat-8.5.32/temp`, like a symlink that points
to the same place?

If so, try setting it exactly to
`/opt/tomcat/appsrv1/apache-tomcat-8.5.32/temp`. The reason for this is that
Orbeon Forms checks, for security reasons, that the temporary file it is
trying to read from is indeed in the temporary directory set with
`java.io.tmpdir`, and that this check can fail if using symlinks.

-Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet

Pedro M.A.

unread,
Jan 21, 2021, 6:14:45 AM1/21/21
to orb...@googlegroups.com
Thanks a lot. Solved with your indications.

Alessandro Vernet

unread,
Jan 21, 2021, 12:27:51 PM1/21/21
to orb...@googlegroups.com
Perfect Pedro, I'm glad that was it, and thank you for the update.

-Alex

-----
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply all
Reply to author
Forward
0 new messages