You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Lukasz Lenart <lu...@apache.org> on 2015/03/02 09:12:44 UTC

Re: [S2] 2.3.20 upgrade issue: No log warning entry for excluded package?

2015-02-27 19:29 GMT+01:00 Burton Rhodes <bu...@gmail.com>:
> I am having a similar issue as it relates to the new
> excludedPackageNamePatterns in 2.3.20 (upgrading from 2.3.16.3).  The
> following line [1] will not resolve with the excludedPackageNamePatterns
> default value, but it will resolve when I clear the constant in struts.xml.
>
> I am wondering why I am not getting a log entry that warns me that it is
> excluded like the docs [2] say I should.  Any reason why this might be?
> Mostly I am looking for the log entry so I can modify the
> excludedPackageNamePatterns to allow this specific class to resolve.
>
> If it matters: My SearchManagerService class is an interface loaded via
> Spring Context.
>
> [1] <s:property value="%{searchManagerService.page.lastPageNumber}"/>
>
> [2]
> http://struts.apache.org/docs/security.html#Security-Internalsecuritymechanism

This is strange, you should get some log entries. Can you list type of
each element?


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: [S2] 2.3.20 upgrade issue: No log warning entry for excluded package?

Posted by Burton Rhodes <bu...@gmail.com>.
Sorry for the delay.  Here is an excerpt from the log from when this
particular page loads.

SearchManagerService : custom interface class to perform searches
SearchManagerServiceImpl : the implementation class
Page: custom class to separate search results into "pages"
getLastPageNumber(): is a method used to figure the last page number of the
page object.  There is no variable named "lastPageNumber"; this is simply a
method that returns a value

Log File:
https://www.dropbox.com/s/xzmc5kmux9dx0x4/log.txt?dl=0

Thanks.

On Mon, Mar 2, 2015 at 2:12 AM, Lukasz Lenart <lu...@apache.org>
wrote:

> 2015-02-27 19:29 GMT+01:00 Burton Rhodes <bu...@gmail.com>:
> > I am having a similar issue as it relates to the new
> > excludedPackageNamePatterns in 2.3.20 (upgrading from 2.3.16.3).  The
> > following line [1] will not resolve with the excludedPackageNamePatterns
> > default value, but it will resolve when I clear the constant in
> struts.xml.
> >
> > I am wondering why I am not getting a log entry that warns me that it is
> > excluded like the docs [2] say I should.  Any reason why this might be?
> > Mostly I am looking for the log entry so I can modify the
> > excludedPackageNamePatterns to allow this specific class to resolve.
> >
> > If it matters: My SearchManagerService class is an interface loaded via
> > Spring Context.
> >
> > [1] <s:property value="%{searchManagerService.page.lastPageNumber}"/>
> >
> > [2]
> >
> http://struts.apache.org/docs/security.html#Security-Internalsecuritymechanism
>
> This is strange, you should get some log entries. Can you list type of
> each element?
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Re: [S2] 2.3.20 upgrade issue: No log warning entry for excluded package?

Posted by Burton Rhodes <bu...@gmail.com>.
Wow. Sorry for the typo goose chase!  Many many thanks for taking a look.

On Fri, Apr 17, 2015 at 12:58 AM, Lukasz Lenart <lu...@apache.org>
wrote:

> First
> It has nothing to do with security mechanism
>
> Second
> it's a typo, at least in the example
>
>
> In test.jsp you have
>
>     searchManager.page.totalNumberOfElements:<s:property
> value="%{searchManager.page.totalNumberOfElements}"/>
>
> where in TestAction you are exposing
>
>     public SearchManagerService getSearchManagerService() {
>         return searchManagerService;
>     }
>
> so it must be named the same way in JSP (you are missing 'Service' suffix)
>
>     searchManager.page.totalNumberOfElements:<s:property
> value="%{searchManagerService.page.totalNumberOfElements}"/>
>
> and now it works:
> http://screencast.com/t/WmZ4S076J
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> 2015-04-14 23:25 GMT+02:00 Burton Rhodes <bu...@gmail.com>:
> > Lukasz -
> >
> > Below is a link to a small test project (maven) that demonstrates my
> > issue.  Hopefully it's something trivial.  Again, thank you for
> > investigating.
> >
> > https://www.dropbox.com/s/qurhklxwz4v82jx/afsTest.zip?dl=0
> >
> > Thanks,
> > Burton
> >
> > On Mon, Apr 6, 2015 at 6:15 PM, Burton Rhodes <bu...@gmail.com>
> > wrote:
> >
> >> ok - I will get back to you
> >>
> >> On Fri, Apr 3, 2015 at 1:13 AM, Lukasz Lenart <lu...@apache.org>
> >> wrote:
> >>
> >>> No idea what's wrong, without a small working example I cannot help
> you :(
> >>>
> >>>
> >>> Regards
> >>> --
> >>> Łukasz
> >>> + 48 606 323 122 http://www.lenart.org.pl/
> >>>
> >>> 2015-03-31 22:31 GMT+02:00 Burton Rhodes <bu...@gmail.com>:
> >>> > Lukasz -
> >>> > Apologies for the delay...  Here is my logfile filtered for
> xwork2.ognl
> >>> >
> >>> > https://www.dropbox.com/s/t5u285gel0uu59m/log.ognl.txt?dl=0
> >>> >
> >>> > Thanks!
> >>> >
> >>> > On Sat, Mar 7, 2015 at 12:40 AM, Lukasz Lenart <
> lukaszlenart@apache.org
> >>> >
> >>> > wrote:
> >>> >
> >>> >> 2015-03-04 13:24 GMT+01:00 Burton Rhodes <bu...@gmail.com>:
> >>> >> > Lukasz - Probably should have mentioned that
> >>> >> > searchMangeerService.getPage().getLastPageNumber() returns an
> "int"
> >>> >>
> >>> >> I have added additional use case to check int type but it wasn't an
> >>> >> issue. Can you narrow logging just to
> >>> >>
> >>> >> com.opensymphony.xwork2.ognl
> >>> >>
> >>> >>
> >>> >> Regards
> >>> >> --
> >>> >> Łukasz
> >>> >> + 48 606 323 122 http://www.lenart.org.pl/
> >>> >>
> >>> >>
> ---------------------------------------------------------------------
> >>> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >>> >> For additional commands, e-mail: user-help@struts.apache.org
> >>> >>
> >>> >>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >>> For additional commands, e-mail: user-help@struts.apache.org
> >>>
> >>>
> >>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Re: [S2] 2.3.20 upgrade issue: No log warning entry for excluded package?

Posted by Lukasz Lenart <lu...@apache.org>.
First
It has nothing to do with security mechanism

Second
it's a typo, at least in the example


In test.jsp you have

    searchManager.page.totalNumberOfElements:<s:property
value="%{searchManager.page.totalNumberOfElements}"/>

where in TestAction you are exposing

    public SearchManagerService getSearchManagerService() {
        return searchManagerService;
    }

so it must be named the same way in JSP (you are missing 'Service' suffix)

    searchManager.page.totalNumberOfElements:<s:property
value="%{searchManagerService.page.totalNumberOfElements}"/>

and now it works:
http://screencast.com/t/WmZ4S076J


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

2015-04-14 23:25 GMT+02:00 Burton Rhodes <bu...@gmail.com>:
> Lukasz -
>
> Below is a link to a small test project (maven) that demonstrates my
> issue.  Hopefully it's something trivial.  Again, thank you for
> investigating.
>
> https://www.dropbox.com/s/qurhklxwz4v82jx/afsTest.zip?dl=0
>
> Thanks,
> Burton
>
> On Mon, Apr 6, 2015 at 6:15 PM, Burton Rhodes <bu...@gmail.com>
> wrote:
>
>> ok - I will get back to you
>>
>> On Fri, Apr 3, 2015 at 1:13 AM, Lukasz Lenart <lu...@apache.org>
>> wrote:
>>
>>> No idea what's wrong, without a small working example I cannot help you :(
>>>
>>>
>>> Regards
>>> --
>>> Łukasz
>>> + 48 606 323 122 http://www.lenart.org.pl/
>>>
>>> 2015-03-31 22:31 GMT+02:00 Burton Rhodes <bu...@gmail.com>:
>>> > Lukasz -
>>> > Apologies for the delay...  Here is my logfile filtered for xwork2.ognl
>>> >
>>> > https://www.dropbox.com/s/t5u285gel0uu59m/log.ognl.txt?dl=0
>>> >
>>> > Thanks!
>>> >
>>> > On Sat, Mar 7, 2015 at 12:40 AM, Lukasz Lenart <lukaszlenart@apache.org
>>> >
>>> > wrote:
>>> >
>>> >> 2015-03-04 13:24 GMT+01:00 Burton Rhodes <bu...@gmail.com>:
>>> >> > Lukasz - Probably should have mentioned that
>>> >> > searchMangeerService.getPage().getLastPageNumber() returns an "int"
>>> >>
>>> >> I have added additional use case to check int type but it wasn't an
>>> >> issue. Can you narrow logging just to
>>> >>
>>> >> com.opensymphony.xwork2.ognl
>>> >>
>>> >>
>>> >> Regards
>>> >> --
>>> >> Łukasz
>>> >> + 48 606 323 122 http://www.lenart.org.pl/
>>> >>
>>> >> ---------------------------------------------------------------------
>>> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>> >> For additional commands, e-mail: user-help@struts.apache.org
>>> >>
>>> >>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>>> For additional commands, e-mail: user-help@struts.apache.org
>>>
>>>
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: [S2] 2.3.20 upgrade issue: No log warning entry for excluded package?

Posted by Burton Rhodes <bu...@gmail.com>.
Lukasz -

Below is a link to a small test project (maven) that demonstrates my
issue.  Hopefully it's something trivial.  Again, thank you for
investigating.

https://www.dropbox.com/s/qurhklxwz4v82jx/afsTest.zip?dl=0

Thanks,
Burton

On Mon, Apr 6, 2015 at 6:15 PM, Burton Rhodes <bu...@gmail.com>
wrote:

> ok - I will get back to you
>
> On Fri, Apr 3, 2015 at 1:13 AM, Lukasz Lenart <lu...@apache.org>
> wrote:
>
>> No idea what's wrong, without a small working example I cannot help you :(
>>
>>
>> Regards
>> --
>> Łukasz
>> + 48 606 323 122 http://www.lenart.org.pl/
>>
>> 2015-03-31 22:31 GMT+02:00 Burton Rhodes <bu...@gmail.com>:
>> > Lukasz -
>> > Apologies for the delay...  Here is my logfile filtered for xwork2.ognl
>> >
>> > https://www.dropbox.com/s/t5u285gel0uu59m/log.ognl.txt?dl=0
>> >
>> > Thanks!
>> >
>> > On Sat, Mar 7, 2015 at 12:40 AM, Lukasz Lenart <lukaszlenart@apache.org
>> >
>> > wrote:
>> >
>> >> 2015-03-04 13:24 GMT+01:00 Burton Rhodes <bu...@gmail.com>:
>> >> > Lukasz - Probably should have mentioned that
>> >> > searchMangeerService.getPage().getLastPageNumber() returns an "int"
>> >>
>> >> I have added additional use case to check int type but it wasn't an
>> >> issue. Can you narrow logging just to
>> >>
>> >> com.opensymphony.xwork2.ognl
>> >>
>> >>
>> >> Regards
>> >> --
>> >> Łukasz
>> >> + 48 606 323 122 http://www.lenart.org.pl/
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> >> For additional commands, e-mail: user-help@struts.apache.org
>> >>
>> >>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>
>

Re: [S2] 2.3.20 upgrade issue: No log warning entry for excluded package?

Posted by Burton Rhodes <bu...@gmail.com>.
ok - I will get back to you

On Fri, Apr 3, 2015 at 1:13 AM, Lukasz Lenart <lu...@apache.org>
wrote:

> No idea what's wrong, without a small working example I cannot help you :(
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> 2015-03-31 22:31 GMT+02:00 Burton Rhodes <bu...@gmail.com>:
> > Lukasz -
> > Apologies for the delay...  Here is my logfile filtered for xwork2.ognl
> >
> > https://www.dropbox.com/s/t5u285gel0uu59m/log.ognl.txt?dl=0
> >
> > Thanks!
> >
> > On Sat, Mar 7, 2015 at 12:40 AM, Lukasz Lenart <lu...@apache.org>
> > wrote:
> >
> >> 2015-03-04 13:24 GMT+01:00 Burton Rhodes <bu...@gmail.com>:
> >> > Lukasz - Probably should have mentioned that
> >> > searchMangeerService.getPage().getLastPageNumber() returns an "int"
> >>
> >> I have added additional use case to check int type but it wasn't an
> >> issue. Can you narrow logging just to
> >>
> >> com.opensymphony.xwork2.ognl
> >>
> >>
> >> Regards
> >> --
> >> Łukasz
> >> + 48 606 323 122 http://www.lenart.org.pl/
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> >> For additional commands, e-mail: user-help@struts.apache.org
> >>
> >>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Re: [S2] 2.3.20 upgrade issue: No log warning entry for excluded package?

Posted by Lukasz Lenart <lu...@apache.org>.
No idea what's wrong, without a small working example I cannot help you :(


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

2015-03-31 22:31 GMT+02:00 Burton Rhodes <bu...@gmail.com>:
> Lukasz -
> Apologies for the delay...  Here is my logfile filtered for xwork2.ognl
>
> https://www.dropbox.com/s/t5u285gel0uu59m/log.ognl.txt?dl=0
>
> Thanks!
>
> On Sat, Mar 7, 2015 at 12:40 AM, Lukasz Lenart <lu...@apache.org>
> wrote:
>
>> 2015-03-04 13:24 GMT+01:00 Burton Rhodes <bu...@gmail.com>:
>> > Lukasz - Probably should have mentioned that
>> > searchMangeerService.getPage().getLastPageNumber() returns an "int"
>>
>> I have added additional use case to check int type but it wasn't an
>> issue. Can you narrow logging just to
>>
>> com.opensymphony.xwork2.ognl
>>
>>
>> Regards
>> --
>> Łukasz
>> + 48 606 323 122 http://www.lenart.org.pl/
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
>> For additional commands, e-mail: user-help@struts.apache.org
>>
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: [S2] 2.3.20 upgrade issue: No log warning entry for excluded package?

Posted by Burton Rhodes <bu...@gmail.com>.
Lukasz -
Apologies for the delay...  Here is my logfile filtered for xwork2.ognl

https://www.dropbox.com/s/t5u285gel0uu59m/log.ognl.txt?dl=0

Thanks!

On Sat, Mar 7, 2015 at 12:40 AM, Lukasz Lenart <lu...@apache.org>
wrote:

> 2015-03-04 13:24 GMT+01:00 Burton Rhodes <bu...@gmail.com>:
> > Lukasz - Probably should have mentioned that
> > searchMangeerService.getPage().getLastPageNumber() returns an "int"
>
> I have added additional use case to check int type but it wasn't an
> issue. Can you narrow logging just to
>
> com.opensymphony.xwork2.ognl
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

Re: [S2] 2.3.20 upgrade issue: No log warning entry for excluded package?

Posted by Lukasz Lenart <lu...@apache.org>.
2015-03-04 13:24 GMT+01:00 Burton Rhodes <bu...@gmail.com>:
> Lukasz - Probably should have mentioned that
> searchMangeerService.getPage().getLastPageNumber() returns an "int"

I have added additional use case to check int type but it wasn't an
issue. Can you narrow logging just to

com.opensymphony.xwork2.ognl


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: [S2] 2.3.20 upgrade issue: No log warning entry for excluded package?

Posted by Burton Rhodes <bu...@gmail.com>.
Lukasz - Probably should have mentioned that
searchMangeerService.getPage().getLastPageNumber() returns an "int"

On Mon, Mar 2, 2015 at 2:12 AM, Lukasz Lenart <lu...@apache.org>
wrote:

> 2015-02-27 19:29 GMT+01:00 Burton Rhodes <bu...@gmail.com>:
> > I am having a similar issue as it relates to the new
> > excludedPackageNamePatterns in 2.3.20 (upgrading from 2.3.16.3).  The
> > following line [1] will not resolve with the excludedPackageNamePatterns
> > default value, but it will resolve when I clear the constant in
> struts.xml.
> >
> > I am wondering why I am not getting a log entry that warns me that it is
> > excluded like the docs [2] say I should.  Any reason why this might be?
> > Mostly I am looking for the log entry so I can modify the
> > excludedPackageNamePatterns to allow this specific class to resolve.
> >
> > If it matters: My SearchManagerService class is an interface loaded via
> > Spring Context.
> >
> > [1] <s:property value="%{searchManagerService.page.lastPageNumber}"/>
> >
> > [2]
> >
> http://struts.apache.org/docs/security.html#Security-Internalsecuritymechanism
>
> This is strange, you should get some log entries. Can you list type of
> each element?
>
>
> Regards
> --
> Łukasz
> + 48 606 323 122 http://www.lenart.org.pl/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>