the security was just a (wild) guess.

I see that the "uploaded-file-processor" is not designed to have EL.
The UPLOADED_FILE_PROCESSOR_KEY field in RequestContextBean class
does that by:

  static public final PropertyKey UPLOADED_FILE_PROCESSOR_KEY =
    TYPE.registerKey("uploaded-file-processor",
                     PropertyKey.CAP_NOT_BOUND);


perhaps we want the PropertyKey.CAP_NOT_BOUND for the debug-output as well.
Or... we fix it :-)

Feel free to change it to what you find correct. I totally trust you ;-)

CU!
Matthias

On Jan 31, 2008 12:56 AM, Martin Marinschek <[EMAIL PROTECTED]> wrote:
> Oh, well - this fix sounds really simple then.
>
> regards,
>
> Martin
>
>
>
> On Thu, Jan 31, 2008 at 12:38 AM, Andy Schwartz <[EMAIL PROTECTED]>
> wrote:
>
> >
> > On Jan 30, 2008 5:45 PM, Martin Marinschek <[EMAIL PROTECTED]>
> wrote:
> >
> > > However, I do not buy Matthias argument that this is due to security
> reasons
> > > - if some intruder gets access to managed-beans, we are hosed anyways. I
> > > think, from a perspective servicing the user, it would be a good thing
> if
> > > the admin could enable debug-output on the fly for an
> > > application/user-session.
> >
> > Actually, looking at the code which is triggering the early evaluation
> > of the debug-output expression, from the very end of
> > ConfigParser.parseConfigFile():
> >
> >    if (_LOG.isInfo())
> >    {
> >      Object debug = bean.getProperty(RequestContextBean.DEBUG_OUTPUT_KEY);
> >      if (Boolean.TRUE.equals(debug))
> >        _LOG.info("RUNNING_IN_DEBUG_MODE",_CONFIG_FILE);
> >    }
> >
> > Perhaps the answer is to delay logging this message until a bit later
> > in the lifecycle (ie. until after the FacesContext is known to be
> > available).
> >
> > Andy
> >
>
>
>
> --
>
>
>
> http://www.irian.at
>
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
>
>  Professional Support for Apache MyFaces



-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org

Reply via email to