You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org> on 2013/07/30 21:31:50 UTC

[jira] [Updated] (TAP5-1802) Component tracing check should check if there is a request

     [ https://issues.apache.org/jira/browse/TAP5-1802?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Howard M. Lewis Ship updated TAP5-1802:
---------------------------------------

    Issue Type: Bug  (was: Improvement)
    
> Component tracing check should check if there is a request
> ----------------------------------------------------------
>
>                 Key: TAP5-1802
>                 URL: https://issues.apache.org/jira/browse/TAP5-1802
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.3
>            Reporter: Denis Stepanov
>
> In ComponentPageElementImpl there is a check if request has a parameter to enable component tracing:
>    // should be okay since it's a shadow service object - NOT
>     private final Request request;
>     return !productionMode && (componentTracingEnabled || "true".equals(request.getParameter("t:component-trace")));
> in a case when PageDocumentGenerator is used there is no request and shadow builder will throw an exception.
> Solution would be to use RequestGlobals and check if there is a request. 
>  

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira