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/ -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1611131497477-0.post%40n4.nabble.com. |
Administrator
|
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 -- Sent from: http://discuss.orbeon.com/ -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1611194591967-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Thanks a lot. Solved with your indications.
-- Sent from: http://discuss.orbeon.com/ -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1611227681272-0.post%40n4.nabble.com. |
Administrator
|
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 -- Sent from: http://discuss.orbeon.com/ -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1611250067547-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |