Can the maximum string length for process parameters be increased? | Community
Skip to main content
Level 2
Nov 22, 2019 8:38 PM UTC
Solved

Can the maximum string length for process parameters be increased?

When we invoke our AEM processes via REST endpoints - i.e. processes created in Adobe Workbench, we are getting an error if the string exceeds 2000 characters:

Invalid input. The maximum length of 2000 characters was exceeded.
at org.owasp.esapi.reference.validation.StringValidationRule.checkLength(StringValidationRule.java:214) [esapi-2.1.0.1.jar:2.1.0.1]​

at org.owasp.esapi.reference.validation.StringValidationRule.checkLength(StringValidationRule.java:229) [esapi-2.1.0.1.jar:2.1.0.1]​

at org.owasp.esapi.reference.validation.StringValidationRule.getValid(StringValidationRule.java:281) [esapi-2.1.0.1.jar:2.1.0.1]​

at org.owasp.esapi.reference.DefaultValidator.getValidInput(DefaultValidator.java:214) [esapi-2.1.0.1.jar:2.1.0.1]​

at com.adobe.util.XSSValidatorHelper.validateXSSInput(XSSValidatorHelper.java:29) [adobe-utilities.jar:6.3.0.20190826.1.337248]​

at com.adobe.idp.dsc.provider.impl.rest.RestServlet.getSafeParameterMap(RestServlet.java:1358) [adobe-rest-provider.jar:6.3.0.20190826.1.337248]​

at com.adobe.idp.dsc.provider.impl.rest.RestServlet.handleInputParams(RestServlet.java:577) [adobe-rest-provider.jar:6.3.0.20190826.1.337248]​

at com.adobe.idp.dsc.provider.impl.rest.RestServlet.doPost(RestServlet.java:284) [adobe-rest-provider.jar:6.3.0.20190826.1.337248]​

Is there a way to increase the maximum allowed length?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
WasilZeeAccepted solution
Employee
Nov 25, 2019 4:19 PM UTC

Then check following :

Thanks

Wasil

4 replies

WasilZeeAccepted solution
Employee
Nov 25, 2019 4:19 PM UTC

Then check following :

Thanks

Wasil

Translate
bajwayaAuthor
Level 2
Nov 25, 2019 3:48 PM UTC

It is being sent in the body:

at com.adobe.idp.dsc.provider.impl.rest.RestServlet.doPost(RestServlet.java:284) [adobe-rest-provider.jar:6.3.0.20190826.1.337248]

Thank you,

Yasir

Translate
Employee
Nov 25, 2019 3:46 PM UTC

It is not recommended to send whole data in the query parameters rather in the body. Please try the same by sending the data in body.

Thanks,

Wasil

Translate
Employee
Nov 23, 2019 1:29 PM UTC

For Json results, it will be the "max json results" at the default get servlet[1]

[1] http://<host>:<port>/system/console/configMgr/org.apache.sling.servlets.get.DefaultGetServlet

Translate