Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
how to change maximum permitted size (262144 bytes)
hi
i used to use soap service generated by service builder, it's 6.2.
now i use 7.4, liferay not support soap now.
i try test me rest service via http://localhost:8080/api/jsonws
it's simple service, but i have to put a long string. it return a exception message
The field jsonInfo exceeds its maximum permitted size of 262144 bytes
if i use url to trigger it, such like
https://localhost:8080/api/jsonws/snm.record/feedback/json-info/<my string>
it shows different error message
Request header is too large
i try add properties in portal-ext.properties
com.liferay.portal.upload.LiferayFileItem.threshold.size=10485760
(i do not know is it right why or not, i just try search 262144, and this is only one value is 262144.)
my questions is: if i was wrong, how to set the maximum permitted size. however, 262144 bytes is too small.
and, i dont know why, sometimes, from api/jsonws, it shows nothing
and console form server also shows nothing. just like it never been
triggered.
Powered by Liferay™