Re: svn commit: r949088 - /ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java

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

Re: svn commit: r949088 - /ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java

Adam Heath-2
[hidden email] wrote:
> Author: lektran
> Date: Fri May 28 03:30:47 2010
> New Revision: 949088
>
> URL: http://svn.apache.org/viewvc?rev=949088&view=rev
> Log:
> Be a little more explicit about what didn't return success when a preprocessor event fails

Should this be backported to some of the release branches?

>
> Modified:
>     ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java
>
> Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java
> URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java?rev=949088&r1=949087&r2=949088&view=diff
> ==============================================================================
> --- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java (original)
> +++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java Fri May 28 03:30:47 2010
> @@ -301,7 +301,7 @@ public class RequestHandler {
>                      String returnString = this.runEvent(request, response, event, null, "preprocessor");
>                      if (returnString != null && !returnString.equalsIgnoreCase("success")) {
>                          if (!returnString.contains(":_protect_:")) {
> -                            throw new EventHandlerException("Pre-Processor event did not return 'success'.");
> +                            throw new EventHandlerException("Pre-Processor event [" + event.invoke + "] did not return 'success'.");
>                          } else { // protect the view normally rendered and redirect to error response view
>                              returnString = returnString.replace(":_protect_:", "");
>                              if (returnString.length() > 0) {
>
>

Reply | Threaded
Open this post in threaded view
|

Re: svn commit: r949088 - /ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java

Scott Gray-2
On 29/05/2010, at 2:45 AM, Adam Heath wrote:

> [hidden email] wrote:
>> Author: lektran
>> Date: Fri May 28 03:30:47 2010
>> New Revision: 949088
>>
>> URL: http://svn.apache.org/viewvc?rev=949088&view=rev
>> Log:
>> Be a little more explicit about what didn't return success when a preprocessor event fails
>
> Should this be backported to some of the release branches?
Dunno, its not strictly a bug, just saves you having to drop in a breakpoint to see what event is causing problems.  I think ideally the event itself should be logging the problem if there is one.

Anyway, I'm not inclined to backport it but I wouldn't be bothered if someone else chose to.

Regards
Scott

smime.p7s (3K) Download Attachment