Large size email not send in ofbiz from back-end

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Large size email not send in ofbiz from back-end

paramjit.saini
This post was updated on .
Hi All,

I have first post this message in Ofbiz mailing list, now i have moved this from ofbiz to ofbiz-user.

I have facing a problem to sent large size order email from back-end may be issue also with frent-end. I have added around 35 item into order. When i tried to send email from back-end given below error occur on screen,

The Following Errors Occurred:
Error calling event: org.ofbiz.webapp.event.EventHandlerException: Service invocation error (Value(0), with value(org.owasp.esapi.errors.ValidationException: body: Invalid HTML input) is not a java.lang.String).


Ofbiz log display error like,

RequestHandler.java:421:ERROR] Request sendconfirmationmail caused an error with the following message: Error calling event: org.ofbiz.webapp.event.EventHandlerException: Service invocation error (Value(0), with value(org.owasp.esapi.errors.ValidationException: body: Invalid HTML input) is not a java.lang.String)
     [java] 2015-03-19 19:07:38,506 (http-0.0.0.0-8443-1) [     RequestHandler.java:741:INFO ] Rendering View [SendConfirmationMail], sessionId=266E91841FFE9419FE576167395E90AA.jvm1
     [java] Mar 19, 2015 7:07:38 PM AppNameNotSpecified IntrusionDetector
     [java] WARNING: SECURITY-FAILURE Anonymous@unknown:unknown -- Invalid HTML input: context=body error=The input was too large. The specified input was 127,934 bytes and the maximum is 100,000 bytes.
     [java]     ValidationException @ org.owasp.esapi.reference.DefaultValidator.getValidSafeHTML(null:-1)

I have checked the esapi.properties file, but not helpfull.

Please guide me to solve the issue.
Reply | Threaded
Open this post in threaded view
|

Re: Large size email not send in ofbiz from back-end

paramjit.saini
Hi All,

Please guide me little bit to solve this issue.
Reply | Threaded
Open this post in threaded view
|

Re: Large size email not send in ofbiz from back-end

Jacques Le Roux
Administrator
Which OFBiz version are you using?

Jacques


Le 31/03/2015 12:14, paramjit.saini a écrit :

> Hi All,
>
> Please guide me little bit to solve this issue.
>
>
>
> --
> View this message in context: http://ofbiz.135035.n4.nabble.com/Large-size-email-not-send-in-ofbiz-from-back-end-tp4665267p4666073.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|

Re: Large size email not send in ofbiz from back-end

paramjit.saini
Hi Jacques,

I have found the solution and increase the maxInputSize in framework/base/config/antisamy-esapi.xml.

<directives>
        <directive name="omitXmlDeclaration" value="true"/>
        <directive name="omitDoctypeDeclaration" value="true"/>
        <directive name="maxInputSize" value="200000"/>
        <directive name="embedStyleSheets" value="false"/>
</directives>

I am using 10.04.

Thanks,
Paramjit
Reply | Threaded
Open this post in threaded view
|

Re: Large size email not send in ofbiz from back-end

Jacques Le Roux
Administrator
Thanks for feedback Paramjit,

I will add that as a tip in the FAQ

Jacques

Le 31/03/2015 14:18, paramjit.saini a écrit :

> Hi Jacques,
>
> I have found the solution and increase the maxInputSize in
> framework/base/config/antisamy-esapi.xml.
>
> <directives>
>          <directive name="omitXmlDeclaration" value="true"/>
>          <directive name="omitDoctypeDeclaration" value="true"/>
>          <directive name="maxInputSize" value="200000"/>
>          <directive name="embedStyleSheets" value="false"/>
> </directives>
>
> I am using 10.04.
>
> Thanks,
> Paramjit
>
>
>
> --
> View this message in context: http://ofbiz.135035.n4.nabble.com/Large-size-email-not-send-in-ofbiz-from-back-end-tp4665267p4666075.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>