Form will not submit using the File Attachment OOTB Component in the Publish Server | Community
Skip to main content
briankasingli-4
Level 2
June 7, 2018
Solved

Form will not submit using the File Attachment OOTB Component in the Publish Server

  • June 7, 2018
  • 15 replies
  • 8230 views

Submitting the form does not submit when the "File Attachment" adaptive form component exists on the adaptive form. No logged in users are proceeded, the form is published, and the submit action is the simple out of the box email submit action.

On submit, in the network tab, I can see that the HTTP Request URL stops at /content/forms/af/my-test-adaptive-form/jcr:content/guideContainer.af.internalsubmit.jsp. Typically on a successful submission, the HTTP Request URL should go to /content/forms/af/s/jcr:content/guideContainer.af.submit.jsp

I performed some tests:

test 1: logged in as admin

- works perfectly

test 2: logged in as test-user; this user is a member of form-user group

- works perfectly

test 3: anonymous user (not logged in)

- like the description above, the HTTP Request URL is stuck /content/forms/af/my-test-adaptive-form/jcr:content/guideContainer.af.internalsubmit.jsp

test 4: anonymous user (not logged in); his user is a member of the administrator's group

- like the description above, the HTTP Request URL is stuck /content/forms/af/my-test-adaptive-form/jcr:content/guideContainer.af.internalsubmit.jsp

Questions

  1. What can I do to enable the file attachment component for anonymous users in my published adaptive form?
  2. I understand the flow of a submission. Files are uploaded when only when files exist, but what is the implementation of this? I need a lower level understanding of what engineering decisions were in this case, because of anonymous users not able to upload files. Documentation - Adobe Experience Manager Help | Writing custom Submit action for adaptive forms

Additional Details:

  • File Attachment Component - /libs/fd/af/components/guidefileupload
  • Submission Action - /libs/fd/af/components/guidesubmittype/email
  • Adaptive Form Status: Published
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by briankasingli-4

It's a Mac OSX problem. I've put together an adaptive form with the exact same setup on a Windows machine, and everything is working fine; anonymous can successfully attach files. In the past, working with the Forms add-on package, Windows usually performs the best; I usually get problems on the Mac OSX machines.

However, please explain the temporary location and files attachments are actually uploaded to the adaptive form? Documentation skips this low level detail.

Thanks.

15 replies

smacdonald2008
Level 10
August 22, 2018

Another test to try is see if you can hit a custom submit action on pub - this will tell us if there is a serious issue with the Pub instance. See Adobe Experience Manager Help | Submitting Adaptive Form Data to MySQL using a DataSourcePool .

This should work on Pub - if Pub is functioning normally

Mayank_Gandhi
Adobe Employee
Adobe Employee
August 22, 2018

Please update the forms common configuration service(Author and publish both) to use All users and try again.

Level 2
August 22, 2018

Wow, that is fantasic. Thanks for digiging out that configuration!!

I enabled it and from the publisher:4503 the file attachement is uploaded successfully!!

But when I access thru the dispatcher,  the submission fails with a server error

22.08.2018 12:39:56.448 *ERROR* [206.107.211.5 [1534966796445] POST /content/<project>/en/home/tmp/fd/af/<form> HTTP/1.1] org.apache.sling.servlets.post.impl.operations.ModifyOperation Unable to create resource named fd in /content/<project>/en/home/tmp

22.08.2018 12:39:56.448 *ERROR* [206.107.211.5 [1534966796445] POST /content/<project>/en/home/tmp/fd/af/<form> HTTP/1.1] org.apache.sling.servlets.post.impl.operations.ModifyOperation Exception during response processing.

org.apache.sling.api.resource.PersistenceException: Unable to create node at /content/<project>/en/home/tmp/fd

        at org.apache.sling.jcr.resource.internal.helper.jcr.JcrResourceProvider.create(JcrResourceProvider.java:480) [org.apache.sling.jcr.resource:3.0.8]

ie: it is trying to create the temporary file under /content/<project>/en/home/tmp/fd folder which does not exists.

If I access the publisher thru port #, it creates the temp file under /tmp/fd/af/<form>/

Not sure If I am missing some configration, that the guideContainer.fd.tempstorageprovider.jsp is giving a wrong path for the submission flow?

Level 2
August 22, 2018

Hi Mayank,

Never mind, it was our apache config which was not allowing /tmp to pass thru was causing those errors!!

So the fix for my issue was to enable Forms Common Configuration Service for all users!!

Thank you.

Mayank_Gandhi
Adobe Employee
Adobe Employee
August 22, 2018

Good to know that the steps shared worked for you.