Expand my Community achievements bar.

SOLVED

Problems calling the guideStoreContentSubmission.submissionForStoreContentUsingServiceUser(userSession,guideStartParameter,path);

Avatar

Level 3

Hi

I was following this Post:

https://helpx.adobe.com/aem-forms/6/custom-submit-action-form.html

 

and I encountered a problem in this code section (from the example)

String storeContent = "/libs/fd/af/components/guidesubmittype/store";
FormsHelper.runAction(storeContent, "post", resource,slingRequest, slingResponse);

 

The problem is during the call of this function (inside of the post.jsp script of /libs/fd/af/components/guidesubmittype/store)

guideStoreContentSubmission.submissionForStoreContentUsingServiceUser()

on top of that I didn't find any information or documentation of this function....

the error is the following

com.adobe.aemds.guide.service.GuideStoreContentSubmission Failed to create path or set permissions.

and the stack trace is attached....

1 Accepted Solution

Avatar

Correct answer by
Employee

Store content due to obvious security reason is not allowed to anonymous user.  You must be trying to  submit to store content anonymously. 

View solution in original post

3 Replies

Avatar

Level 10

What are you trying to do when you encounter this. Please provide detailed steps so community can attempt to reproduce in order to help you. 

Avatar

Level 3

Hi

I was following this Post:

https://helpx.adobe.com/aem-forms/6/custom-submit-action-form.html

 

and I encotered this problem in this code section (from the example)

String storeContent = "/libs/fd/af/components/guidesubmittype/store";
        FormsHelper.runAction(storeContent, "post", resource,slingRequest, slingResponse);

Thanks

Avatar

Correct answer by
Employee

Store content due to obvious security reason is not allowed to anonymous user.  You must be trying to  submit to store content anonymously.