[jira] [Commented] (WW-4922) Allow use Jackson XML bindings to serialise / deserialise XML

2018-02-19 Thread ASF GitHub Bot (JIRA)

[ 
https://issues.apache.org/jira/browse/WW-4922?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16369751#comment-16369751
 ] 

ASF GitHub Bot commented on WW-4922:


lukaszlenart opened a new pull request #210: WW-4922: Jackson XML
URL: https://github.com/apache/struts/pull/210
 
 
   Implements [WW-4922](https://issues.apache.org/jira/browse/WW-4922)


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


> Allow use Jackson XML bindings to serialise / deserialise XML
> -
>
> Key: WW-4922
> URL: https://issues.apache.org/jira/browse/WW-4922
> Project: Struts 2
>  Issue Type: Improvement
>  Components: Plugin - REST
>Reporter: Lukasz Lenart
>Priority: Minor
> Fix For: 2.5.16
>
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (WW-4922) Allow use Jackson XML bindings to serialise / deserialise XML

2018-02-19 Thread Lukasz Lenart (JIRA)

[ 
https://issues.apache.org/jira/browse/WW-4922?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16369749#comment-16369749
 ] 

Lukasz Lenart commented on WW-4922:
---

I have marked this as fixable in 2.5.16 but I'm open to move it to 2.6

> Allow use Jackson XML bindings to serialise / deserialise XML
> -
>
> Key: WW-4922
> URL: https://issues.apache.org/jira/browse/WW-4922
> Project: Struts 2
>  Issue Type: Improvement
>  Components: Plugin - REST
>Reporter: Lukasz Lenart
>Priority: Minor
> Fix For: 2.5.16
>
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (WW-4069) Upgrade DWR plugin to use the latest available version

2018-02-19 Thread Lukasz Lenart (JIRA)

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

Lukasz Lenart updated WW-4069:
--
Summary: Upgrade DWR plugin to use the latest available version  (was: 
Upgrade DWR plugin to use the latest available version of DWR - 2.0.10)

> Upgrade DWR plugin to use the latest available version
> --
>
> Key: WW-4069
> URL: https://issues.apache.org/jira/browse/WW-4069
> Project: Struts 2
>  Issue Type: Improvement
>  Components: Plugin - DWR
>Affects Versions: 2.3.14
>Reporter: Lukasz Lenart
>Priority: Minor
> Fix For: 2.6
>
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (WW-4069) Upgrade DWR plugin to use the latest available version of DWR - 2.0.10

2018-02-19 Thread Lukasz Lenart (JIRA)

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

Lukasz Lenart updated WW-4069:
--
Fix Version/s: (was: 2.5.x)
   2.6

> Upgrade DWR plugin to use the latest available version of DWR - 2.0.10
> --
>
> Key: WW-4069
> URL: https://issues.apache.org/jira/browse/WW-4069
> Project: Struts 2
>  Issue Type: Improvement
>  Components: Plugin - DWR
>Affects Versions: 2.3.14
>Reporter: Lukasz Lenart
>Priority: Minor
> Fix For: 2.6
>
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (WW-4342) Move all doc snippets from source code to Confluence

2018-02-19 Thread Lukasz Lenart (JIRA)

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

Lukasz Lenart updated WW-4342:
--
Fix Version/s: (was: 2.5.x)
   2.5.14

> Move all doc snippets from source code to Confluence
> 
>
> Key: WW-4342
> URL: https://issues.apache.org/jira/browse/WW-4342
> Project: Struts 2
>  Issue Type: Improvement
>  Components: Documentation
>Affects Versions: 2.3.16.3
> Environment: Confluence
>Reporter: Lukasz Lenart
>Assignee: Lukasz Lenart
>Priority: Minor
> Fix For: 2.5.14
>
>
> After migrating to the latest version of Confluence there is a lot of 
> warnings during exporting pages to html:
> {noformat}
> WARNING: Page "ConversionErrorFieldValidator Annotation" (WW) has unmigrated 
> wiki content.
> WARNING: Page "struts-default.xml" (WW) has unmigrated wiki content.
> WARNING: Page "date" (WW) has unmigrated wiki content.
> WARNING: Page "param" (WW) has unmigrated wiki content.
> WARNING: Page "password" (WW) has unmigrated wiki content.
> WARNING: Page "VisitorFieldValidator Annotation" (WW) has unmigrated wiki 
> content.
> WARNING: Page "reset" (WW) has unmigrated wiki content.
> WARNING: Page "xhtml theme" (WW) has unmigrated wiki content.
> WARNING: Page "else" (WW) has unmigrated wiki content.
> WARNING: Page "DateRangeFieldValidator Annotation" (WW) has unmigrated wiki 
> content.
> WARNING: Page "struts.properties" (WW) has unmigrated wiki content.
> WARNING: Page "AJAX Validation" (WW) has unmigrated wiki content.
> WARNING: Page "ajax head template" (WW) has unmigrated wiki content.
> WARNING: Page "include" (WW) has unmigrated wiki content.
> WARNING: Page "IntRangeFieldValidator Annotation" (WW) has unmigrated wiki 
> content.
> WARNING: Page "Plugins" (WW) has unmigrated wiki content.
> WARNING: Page "RequiredStringValidator Annotation" (WW) has unmigrated wiki 
> content.
> WARNING: Page "generator" (WW) has unmigrated wiki content.
> WARNING: Page "i18n" (WW) has unmigrated wiki content.
> WARNING: Page "Validations Annotation" (WW) has unmigrated wiki content.
> WARNING: Page "updownselect" (WW) has unmigrated wiki content.
> WARNING: Page "iterator" (WW) has unmigrated wiki content.
> WARNING: Page "Client Validation" (WW) has unmigrated wiki content.
> WARNING: Page "url" (WW) has unmigrated wiki content.
> WARNING: Page "BeforeResult Annotation" (WW) has unmigrated wiki content.
> WARNING: Page "StringLengthFieldValidator Annotation" (WW) has unmigrated 
> wiki content.
> WARNING: Page "Servlet Config Interceptor" (WW) has unmigrated wiki content.
> WARNING: Page "div" (WW) has unmigrated wiki content.
> WARNING: Page "xhtml form template" (WW) has unmigrated wiki content.
> WARNING: Page "textfield" (WW) has unmigrated wiki content.
> WARNING: Page "Validation Annotation" (WW) has unmigrated wiki content.
> WARNING: Page "I18n Interceptor" (WW) has unmigrated wiki content.
> WARNING: Page "textarea" (WW) has unmigrated wiki content.
> WARNING: Page "Element Annotation" (WW) has unmigrated wiki content.
> WARNING: Page "Scope Interceptor" (WW) has unmigrated wiki content.
> WARNING: Page "Token Session Interceptor" (WW) has unmigrated wiki content.
> WARNING: Page "simple head template" (WW) has unmigrated wiki content.
> WARNING: Page "FieldExpressionValidator Annotation" (WW) has unmigrated wiki 
> content.
> WARNING: Page "optiontransferselect" (WW) has unmigrated wiki content.
> WARNING: Page "email validator" (WW) has unmigrated wiki content.
> WARNING: Page "CustomValidator Annotation" (WW) has unmigrated wiki content.
> WARNING: Page "Interceptors" (WW) has unmigrated wiki content.
> WARNING: Page "property" (WW) has unmigrated wiki content.
> WARNING: Page "elseif" (WW) has unmigrated wiki content.
> WARNING: Page "Using Visitor Field Validator" (WW) has unmigrated wiki 
> content.
> WARNING: Page "ExpressionValidator Annotation" (WW) has unmigrated wiki 
> content.
> WARNING: Page "checkboxlist" (WW) has unmigrated wiki content.
> WARNING: Page "CreateIfNull Annotation" (WW) has unmigrated wiki content.
> WARNING: Page "bean" (WW) has unmigrated wiki content.
> WARNING: Page "xhtml head template" (WW) has unmigrated wiki content.
> WARNING: Page "Create Session Interceptor" (WW) has unmigrated wiki content.
> WARNING: Page "Default Workflow Interceptor" (WW) has unmigrated wiki content.
> WARNING: Page "head" (WW) has unmigrated wiki content.
> WARNING: Page "token" (WW) has unmigrated wiki content.
> WARNING: Page "XSL Result" (WW) has unmigrated wiki content.
> WARNING: Page "stringlength validator" (WW) has unmigrated wiki content.
> WARNING: Page "doubleselect" (WW) has unmigrated wiki content.
> WARNING: Page "Exception Interceptor" (WW) has unmigrated wiki content.
> WARNING: Page "Key 

[jira] [Closed] (WW-4342) Move all doc snippets from source code to Confluence

2018-02-19 Thread Lukasz Lenart (JIRA)

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

Lukasz Lenart closed WW-4342.
-
Resolution: Fixed

> Move all doc snippets from source code to Confluence
> 
>
> Key: WW-4342
> URL: https://issues.apache.org/jira/browse/WW-4342
> Project: Struts 2
>  Issue Type: Improvement
>  Components: Documentation
>Affects Versions: 2.3.16.3
> Environment: Confluence
>Reporter: Lukasz Lenart
>Assignee: Lukasz Lenart
>Priority: Minor
> Fix For: 2.5.14
>
>
> After migrating to the latest version of Confluence there is a lot of 
> warnings during exporting pages to html:
> {noformat}
> WARNING: Page "ConversionErrorFieldValidator Annotation" (WW) has unmigrated 
> wiki content.
> WARNING: Page "struts-default.xml" (WW) has unmigrated wiki content.
> WARNING: Page "date" (WW) has unmigrated wiki content.
> WARNING: Page "param" (WW) has unmigrated wiki content.
> WARNING: Page "password" (WW) has unmigrated wiki content.
> WARNING: Page "VisitorFieldValidator Annotation" (WW) has unmigrated wiki 
> content.
> WARNING: Page "reset" (WW) has unmigrated wiki content.
> WARNING: Page "xhtml theme" (WW) has unmigrated wiki content.
> WARNING: Page "else" (WW) has unmigrated wiki content.
> WARNING: Page "DateRangeFieldValidator Annotation" (WW) has unmigrated wiki 
> content.
> WARNING: Page "struts.properties" (WW) has unmigrated wiki content.
> WARNING: Page "AJAX Validation" (WW) has unmigrated wiki content.
> WARNING: Page "ajax head template" (WW) has unmigrated wiki content.
> WARNING: Page "include" (WW) has unmigrated wiki content.
> WARNING: Page "IntRangeFieldValidator Annotation" (WW) has unmigrated wiki 
> content.
> WARNING: Page "Plugins" (WW) has unmigrated wiki content.
> WARNING: Page "RequiredStringValidator Annotation" (WW) has unmigrated wiki 
> content.
> WARNING: Page "generator" (WW) has unmigrated wiki content.
> WARNING: Page "i18n" (WW) has unmigrated wiki content.
> WARNING: Page "Validations Annotation" (WW) has unmigrated wiki content.
> WARNING: Page "updownselect" (WW) has unmigrated wiki content.
> WARNING: Page "iterator" (WW) has unmigrated wiki content.
> WARNING: Page "Client Validation" (WW) has unmigrated wiki content.
> WARNING: Page "url" (WW) has unmigrated wiki content.
> WARNING: Page "BeforeResult Annotation" (WW) has unmigrated wiki content.
> WARNING: Page "StringLengthFieldValidator Annotation" (WW) has unmigrated 
> wiki content.
> WARNING: Page "Servlet Config Interceptor" (WW) has unmigrated wiki content.
> WARNING: Page "div" (WW) has unmigrated wiki content.
> WARNING: Page "xhtml form template" (WW) has unmigrated wiki content.
> WARNING: Page "textfield" (WW) has unmigrated wiki content.
> WARNING: Page "Validation Annotation" (WW) has unmigrated wiki content.
> WARNING: Page "I18n Interceptor" (WW) has unmigrated wiki content.
> WARNING: Page "textarea" (WW) has unmigrated wiki content.
> WARNING: Page "Element Annotation" (WW) has unmigrated wiki content.
> WARNING: Page "Scope Interceptor" (WW) has unmigrated wiki content.
> WARNING: Page "Token Session Interceptor" (WW) has unmigrated wiki content.
> WARNING: Page "simple head template" (WW) has unmigrated wiki content.
> WARNING: Page "FieldExpressionValidator Annotation" (WW) has unmigrated wiki 
> content.
> WARNING: Page "optiontransferselect" (WW) has unmigrated wiki content.
> WARNING: Page "email validator" (WW) has unmigrated wiki content.
> WARNING: Page "CustomValidator Annotation" (WW) has unmigrated wiki content.
> WARNING: Page "Interceptors" (WW) has unmigrated wiki content.
> WARNING: Page "property" (WW) has unmigrated wiki content.
> WARNING: Page "elseif" (WW) has unmigrated wiki content.
> WARNING: Page "Using Visitor Field Validator" (WW) has unmigrated wiki 
> content.
> WARNING: Page "ExpressionValidator Annotation" (WW) has unmigrated wiki 
> content.
> WARNING: Page "checkboxlist" (WW) has unmigrated wiki content.
> WARNING: Page "CreateIfNull Annotation" (WW) has unmigrated wiki content.
> WARNING: Page "bean" (WW) has unmigrated wiki content.
> WARNING: Page "xhtml head template" (WW) has unmigrated wiki content.
> WARNING: Page "Create Session Interceptor" (WW) has unmigrated wiki content.
> WARNING: Page "Default Workflow Interceptor" (WW) has unmigrated wiki content.
> WARNING: Page "head" (WW) has unmigrated wiki content.
> WARNING: Page "token" (WW) has unmigrated wiki content.
> WARNING: Page "XSL Result" (WW) has unmigrated wiki content.
> WARNING: Page "stringlength validator" (WW) has unmigrated wiki content.
> WARNING: Page "doubleselect" (WW) has unmigrated wiki content.
> WARNING: Page "Exception Interceptor" (WW) has unmigrated wiki content.
> WARNING: Page "Key Annotation" (WW) has unmigrated wiki 

[jira] [Commented] (WW-4921) NPE in I18nInterceptor$SessionLocaleHandler.read

2018-02-19 Thread Aleksandr Mashchenko (JIRA)

[ 
https://issues.apache.org/jira/browse/WW-4921?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16369447#comment-16369447
 ] 

Aleksandr Mashchenko commented on WW-4921:
--

[~Michael Hintenaus]

Can you show more code of your test.

 Any reason why do you use {{invoke()}}? There is {{execute()}} in 
{{ActionProxy}} and {{executeAction}} in test case.

> NPE in I18nInterceptor$SessionLocaleHandler.read
> 
>
> Key: WW-4921
> URL: https://issues.apache.org/jira/browse/WW-4921
> Project: Struts 2
>  Issue Type: Bug
>  Components: Core Interceptors
>Reporter: Michael Hintenaus
>Priority: Major
>  Labels: test
> Fix For: 2.5.16
>
>
> Calling
> {code:java}
> getActionProxy("/index.action").getInvocation().invoke(){code}
> in a TestCase which extends from StrutsJUnit4TestCase will lead to a 
> NullPointerException.
> Overriding getActionProxy like this will help:
> {code:java}
>  @Override
>     protected ActionProxy getActionProxy(final String uri) {
>         final ActionProxy proxy = super.getActionProxy(uri);
>         final ActionContext context = 
> proxy.getInvocation().getInvocationContext();
>         if (context.getSession() == null) {
>             context.setSession(new SessionMap<>(request));            
>         }
>         return proxy;
>     }{code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (WW-4921) NPE in I18nInterceptor$SessionLocaleHandler.read

2018-02-19 Thread Lukasz Lenart (JIRA)

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

Lukasz Lenart updated WW-4921:
--
Fix Version/s: 2.5.16

> NPE in I18nInterceptor$SessionLocaleHandler.read
> 
>
> Key: WW-4921
> URL: https://issues.apache.org/jira/browse/WW-4921
> Project: Struts 2
>  Issue Type: Bug
>  Components: Core Interceptors
>Reporter: Michael Hintenaus
>Priority: Major
>  Labels: test
> Fix For: 2.5.16
>
>
> Calling
> {code:java}
> getActionProxy("/index.action").getInvocation().invoke(){code}
> in a TestCase which extends from StrutsJUnit4TestCase will lead to a 
> NullPointerException.
> Overriding getActionProxy like this will help:
> {code:java}
>  @Override
>     protected ActionProxy getActionProxy(final String uri) {
>         final ActionProxy proxy = super.getActionProxy(uri);
>         final ActionContext context = 
> proxy.getInvocation().getInvocationContext();
>         if (context.getSession() == null) {
>             context.setSession(new SessionMap<>(request));            
>         }
>         return proxy;
>     }{code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (WW-4921) NPE in I18nInterceptor$SessionLocaleHandler.read

2018-02-19 Thread Michael Hintenaus (JIRA)

[ 
https://issues.apache.org/jira/browse/WW-4921?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16369125#comment-16369125
 ] 

Michael Hintenaus commented on WW-4921:
---

No, I didn't consider using the old fashion StrutsTestCase, I wan't to use 
JUnit4 features...

> NPE in I18nInterceptor$SessionLocaleHandler.read
> 
>
> Key: WW-4921
> URL: https://issues.apache.org/jira/browse/WW-4921
> Project: Struts 2
>  Issue Type: Bug
>  Components: Core Interceptors
>Reporter: Michael Hintenaus
>Priority: Major
>  Labels: test
>
> Calling
> {code:java}
> getActionProxy("/index.action").getInvocation().invoke(){code}
> in a TestCase which extends from StrutsJUnit4TestCase will lead to a 
> NullPointerException.
> Overriding getActionProxy like this will help:
> {code:java}
>  @Override
>     protected ActionProxy getActionProxy(final String uri) {
>         final ActionProxy proxy = super.getActionProxy(uri);
>         final ActionContext context = 
> proxy.getInvocation().getInvocationContext();
>         if (context.getSession() == null) {
>             context.setSession(new SessionMap<>(request));            
>         }
>         return proxy;
>     }{code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Comment Edited] (WW-4921) NPE in I18nInterceptor$SessionLocaleHandler.read

2018-02-19 Thread Yasser Zamani (JIRA)

[ 
https://issues.apache.org/jira/browse/WW-4921?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16369120#comment-16369120
 ] 

Yasser Zamani edited comment on WW-4921 at 2/19/18 1:37 PM:


I see {{org.apache.struts2.StrutsTestCase}} inits session. Did you consider 
using it instead?

I see {{org.apache.struts2.StrutsTestCase#getActionProxy}} and 
{{org.apache.struts2.StrutsJUnit4TestCase#getActionProxy}} are exactly same 
except in {{StrutsTestCase}}, lines #158-161 has been refactored into a 
seperate function named {{initActionContext}} and also creation of session has 
been added. Currently I don't know if it's a design decision? or 
{{StrutsJUnit4TestCase}} should be changed same as {{StrutsTestCase}}?


was (Author: yasser.zamani):
I see {{org.apache.struts2.StrutsTestCase}} inits session. Did you consider 
using it instead?

I see {{org.apache.struts2.StrutsTestCase#getActionProxy}} and 
{{org.apache.struts2.StrutsJUnit4TestCase #getActionProxy}} are exactly same 
except {{StrutsTestCase}} has been refactored lines #158-161 into a seperate 
function name {{initActionContext}} and also has been added creation of 
session. Currently I don't know if it's a design decision? or 
{{StrutsJUnit4TestCase}} should be changed same as {{StrutsTestCase}}?

> NPE in I18nInterceptor$SessionLocaleHandler.read
> 
>
> Key: WW-4921
> URL: https://issues.apache.org/jira/browse/WW-4921
> Project: Struts 2
>  Issue Type: Bug
>  Components: Core Interceptors
>Reporter: Michael Hintenaus
>Priority: Major
>  Labels: test
>
> Calling
> {code:java}
> getActionProxy("/index.action").getInvocation().invoke(){code}
> in a TestCase which extends from StrutsJUnit4TestCase will lead to a 
> NullPointerException.
> Overriding getActionProxy like this will help:
> {code:java}
>  @Override
>     protected ActionProxy getActionProxy(final String uri) {
>         final ActionProxy proxy = super.getActionProxy(uri);
>         final ActionContext context = 
> proxy.getInvocation().getInvocationContext();
>         if (context.getSession() == null) {
>             context.setSession(new SessionMap<>(request));            
>         }
>         return proxy;
>     }{code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Commented] (WW-4921) NPE in I18nInterceptor$SessionLocaleHandler.read

2018-02-19 Thread Yasser Zamani (JIRA)

[ 
https://issues.apache.org/jira/browse/WW-4921?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16369120#comment-16369120
 ] 

Yasser Zamani commented on WW-4921:
---

I see {{org.apache.struts2.StrutsTestCase}} inits session. Did you consider 
using it instead?

I see {{org.apache.struts2.StrutsTestCase#getActionProxy}} and 
{{org.apache.struts2.StrutsJUnit4TestCase #getActionProxy}} are exactly same 
except {{StrutsTestCase}} has been refactored lines #158-161 into a seperate 
function name {{initActionContext}} and also has been added creation of 
session. Currently I don't know if it's a design decision? or 
{{StrutsJUnit4TestCase}} should be changed same as {{StrutsTestCase}}?

> NPE in I18nInterceptor$SessionLocaleHandler.read
> 
>
> Key: WW-4921
> URL: https://issues.apache.org/jira/browse/WW-4921
> Project: Struts 2
>  Issue Type: Bug
>  Components: Core Interceptors
>Reporter: Michael Hintenaus
>Priority: Major
>  Labels: test
>
> Calling
> {code:java}
> getActionProxy("/index.action").getInvocation().invoke(){code}
> in a TestCase which extends from StrutsJUnit4TestCase will lead to a 
> NullPointerException.
> Overriding getActionProxy like this will help:
> {code:java}
>  @Override
>     protected ActionProxy getActionProxy(final String uri) {
>         final ActionProxy proxy = super.getActionProxy(uri);
>         final ActionContext context = 
> proxy.getInvocation().getInvocationContext();
>         if (context.getSession() == null) {
>             context.setSession(new SessionMap<>(request));            
>         }
>         return proxy;
>     }{code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (WW-4921) NPE in I18nInterceptor$SessionLocaleHandler.read

2018-02-19 Thread Michael Hintenaus (JIRA)

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

Michael Hintenaus updated WW-4921:
--
Description: 
Calling
{code:java}
getActionProxy("/index.action").getInvocation().invoke(){code}
in a TestCase which extends from StrutsJUnit4TestCase will lead to a 
NullPointerException.

Overriding getActionProxy like this will help:
{code:java}
 @Override
    protected ActionProxy getActionProxy(final String uri) {
        final ActionProxy proxy = super.getActionProxy(uri);
        final ActionContext context = 
proxy.getInvocation().getInvocationContext();
        if (context.getSession() == null) {
            context.setSession(new SessionMap<>(request));            
        }
        return proxy;
    }{code}
 

  was:
Calling
{code:java}
getActionProxy("/index.action").getInvocation().invoke(){code}
in a TestCase which extendsStrutsJUnit4TestCase will lead to a 
NullPointerException.

Overriding getActionProxy like this will help:
{code:java}
 @Override
    protected ActionProxy getActionProxy(final String uri) {
        final ActionProxy proxy = super.getActionProxy(uri);
        final ActionContext context = 
proxy.getInvocation().getInvocationContext();
        if (context.getSession() == null) {
            context.setSession(new SessionMap<>(request));            
        }
        return proxy;
    }{code}
 


> NPE in I18nInterceptor$SessionLocaleHandler.read
> 
>
> Key: WW-4921
> URL: https://issues.apache.org/jira/browse/WW-4921
> Project: Struts 2
>  Issue Type: Bug
>  Components: Core Interceptors
>Reporter: Michael Hintenaus
>Priority: Major
>  Labels: test
>
> Calling
> {code:java}
> getActionProxy("/index.action").getInvocation().invoke(){code}
> in a TestCase which extends from StrutsJUnit4TestCase will lead to a 
> NullPointerException.
> Overriding getActionProxy like this will help:
> {code:java}
>  @Override
>     protected ActionProxy getActionProxy(final String uri) {
>         final ActionProxy proxy = super.getActionProxy(uri);
>         final ActionContext context = 
> proxy.getInvocation().getInvocationContext();
>         if (context.getSession() == null) {
>             context.setSession(new SessionMap<>(request));            
>         }
>         return proxy;
>     }{code}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Created] (WW-4921) NPE in I18nInterceptor$SessionLocaleHandler.read

2018-02-19 Thread Michael Hintenaus (JIRA)
Michael Hintenaus created WW-4921:
-

 Summary: NPE in I18nInterceptor$SessionLocaleHandler.read
 Key: WW-4921
 URL: https://issues.apache.org/jira/browse/WW-4921
 Project: Struts 2
  Issue Type: Bug
  Components: Core Interceptors
Reporter: Michael Hintenaus


Calling
{code:java}
getActionProxy("/index.action").getInvocation().invoke(){code}
in a TestCase which extendsStrutsJUnit4TestCase will lead to a 
NullPointerException.

Overriding getActionProxy like this will help:
{code:java}
 @Override
    protected ActionProxy getActionProxy(final String uri) {
        final ActionProxy proxy = super.getActionProxy(uri);
        final ActionContext context = 
proxy.getInvocation().getInvocationContext();
        if (context.getSession() == null) {
            context.setSession(new SessionMap<>(request));            
        }
        return proxy;
    }{code}
 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (WW-4920) Could not create JarEntryRevision for [zip:C:/.... unknown protocol c

2018-02-19 Thread Lukasz Lenart (JIRA)

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

Lukasz Lenart updated WW-4920:
--
Fix Version/s: (was: 2.5.16)
   2.5.15

> Could not create JarEntryRevision for [zip:C:/ unknown protocol c
> -
>
> Key: WW-4920
> URL: https://issues.apache.org/jira/browse/WW-4920
> Project: Struts 2
>  Issue Type: Bug
>  Components: Core
>Affects Versions: 2.5.14
> Environment: Weblogic server (Weblogic server version 12.2.1.2.0, JDK 
> v 1.8.0_101)
>Reporter: Yasser Zamani
>Assignee: Yasser Zamani
>Priority: Major
>  Labels: weblogic
> Fix For: 2.5.15
>
>
> This is a follow up for [BUG in 
> struts-2.5.15|http://mail-archives.apache.org/mod_mbox/struts-user/201802.mbox/browser].
> copy of report from user mail list:
> Hi all,
> Testing your upcoming struts-2.5.15, when starting Weblogic server (Weblogic 
> server version
> 12.2.1.2.0, JDK v 1.8.0_101), we see exception below.
> Thanks,
> Liem.
> 
> {code:java}
> 2018-02-14 10:28:37.194 WARN  - Could not create JarEntryRevision for 
> [zip:C:/Oracle/Middleware/Oracle_Home12.2.1.0.0/user_projects/domains/iwa_local_domain/servers/AdminServer/tmp/_WL_user/IWA/zfd81u/war/WEB-INF/lib/struts2-core.jar!/struts-default.xml]!
> java.net.MalformedURLException: unknown protocol: c
> at java.net.URL.(URL.java:600) ~[?:1.8.0_101]
> at java.net.URL.(URL.java:490) ~[?:1.8.0_101]
> at java.net.URL.(URL.java:439) ~[?:1.8.0_101]
> at 
> java.net.JarURLConnection.parseSpecs(JarURLConnection.java:175) ~[?:1.8.0_101]
> at 
> java.net.JarURLConnection.(JarURLConnection.java:158) ~[?:1.8.0_101]
> at 
> com.opensymphony.xwork2.util.fs.StrutsJarURLConnection.(StrutsJarURLConnection.java:44)
> ~[struts2-core.jar:2.5.15]
> at 
> com.opensymphony.xwork2.util.fs.StrutsJarURLConnection.openConnection(StrutsJarURLConnection.java:99)
> ~[struts2-core.jar:2.5.15]
> at 
> com.opensymphony.xwork2.util.fs.JarEntryRevision.build(JarEntryRevision.java:42)
> [struts2-core.jar:2.5.15]
> at 
> com.opensymphony.xwork2.util.fs.DefaultFileManager.monitorFile(DefaultFileManager.java:94)
> [struts2-core.jar:2.5.15]
> at 
> com.opensymphony.xwork2.util.fs.DefaultFileManager.loadFile(DefaultFileManager.java:73)
> [struts2-core.jar:2.5.15]
> at 
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:1054)
> [struts2-core.jar:2.5.15]
> at 
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:198)
> [struts2-core.jar:2.5.15]
> at 
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:165)
> [struts2-core.jar:2.5.15]
> at 
> com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:166)
> [struts2-core.jar:2.5.15]
> at 
> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)
> [struts2-core.jar:2.5.15]
> at 
> org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:957)
> [struts2-core.jar:2.5.15]
> at 
> org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:463)
> [struts2-core.jar:2.5.15]
> at 
> org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:496) 
> [struts2-core.jar:2.5.15]
> at 
> org.apache.struts2.dispatcher.InitOperations.initDispatcher(InitOperations.java:73)
> [struts2-core.jar:2.5.15]
> at 
> org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:61)
> [struts2-core.jar:2.5.15]
> at 
> weblogic.servlet.internal.FilterManager$FilterInitAction.run(FilterManager.java:400)
> [com.oracle.weblogic.servlet.jar:12.2.1.0]
> at 
> weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:326)
> [com.oracle.weblogic.security.subject.jar:12.2.1.0]
> at 
> weblogic.security.service.SecurityManager.runAsForUserCode(SecurityManager.java:196)
> [com.oracle.weblogic.security.subject.jar:12.2.1.0]
> at 
> weblogic.servlet.provider.WlsSecurityProvider.runAsForUserCode(WlsSecurityProvider.java:203)
> [com.oracle.weblogic.servlet.jar:12.2.1.0]
> at 
> weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:71)
> [com.oracle.weblogic.servlet.jar:12.2.1.0]
>

[jira] [Updated] (WW-4920) Could not create JarEntryRevision for [zip:C:/.... unknown protocol c

2018-02-19 Thread Lukasz Lenart (JIRA)

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

Lukasz Lenart updated WW-4920:
--
Affects Version/s: (was: 2.5.15)
   2.5.14

> Could not create JarEntryRevision for [zip:C:/ unknown protocol c
> -
>
> Key: WW-4920
> URL: https://issues.apache.org/jira/browse/WW-4920
> Project: Struts 2
>  Issue Type: Bug
>  Components: Core
>Affects Versions: 2.5.14
> Environment: Weblogic server (Weblogic server version 12.2.1.2.0, JDK 
> v 1.8.0_101)
>Reporter: Yasser Zamani
>Assignee: Yasser Zamani
>Priority: Major
>  Labels: weblogic
> Fix For: 2.5.16
>
>
> This is a follow up for [BUG in 
> struts-2.5.15|http://mail-archives.apache.org/mod_mbox/struts-user/201802.mbox/browser].
> copy of report from user mail list:
> Hi all,
> Testing your upcoming struts-2.5.15, when starting Weblogic server (Weblogic 
> server version
> 12.2.1.2.0, JDK v 1.8.0_101), we see exception below.
> Thanks,
> Liem.
> 
> {code:java}
> 2018-02-14 10:28:37.194 WARN  - Could not create JarEntryRevision for 
> [zip:C:/Oracle/Middleware/Oracle_Home12.2.1.0.0/user_projects/domains/iwa_local_domain/servers/AdminServer/tmp/_WL_user/IWA/zfd81u/war/WEB-INF/lib/struts2-core.jar!/struts-default.xml]!
> java.net.MalformedURLException: unknown protocol: c
> at java.net.URL.(URL.java:600) ~[?:1.8.0_101]
> at java.net.URL.(URL.java:490) ~[?:1.8.0_101]
> at java.net.URL.(URL.java:439) ~[?:1.8.0_101]
> at 
> java.net.JarURLConnection.parseSpecs(JarURLConnection.java:175) ~[?:1.8.0_101]
> at 
> java.net.JarURLConnection.(JarURLConnection.java:158) ~[?:1.8.0_101]
> at 
> com.opensymphony.xwork2.util.fs.StrutsJarURLConnection.(StrutsJarURLConnection.java:44)
> ~[struts2-core.jar:2.5.15]
> at 
> com.opensymphony.xwork2.util.fs.StrutsJarURLConnection.openConnection(StrutsJarURLConnection.java:99)
> ~[struts2-core.jar:2.5.15]
> at 
> com.opensymphony.xwork2.util.fs.JarEntryRevision.build(JarEntryRevision.java:42)
> [struts2-core.jar:2.5.15]
> at 
> com.opensymphony.xwork2.util.fs.DefaultFileManager.monitorFile(DefaultFileManager.java:94)
> [struts2-core.jar:2.5.15]
> at 
> com.opensymphony.xwork2.util.fs.DefaultFileManager.loadFile(DefaultFileManager.java:73)
> [struts2-core.jar:2.5.15]
> at 
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:1054)
> [struts2-core.jar:2.5.15]
> at 
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:198)
> [struts2-core.jar:2.5.15]
> at 
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:165)
> [struts2-core.jar:2.5.15]
> at 
> com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:166)
> [struts2-core.jar:2.5.15]
> at 
> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)
> [struts2-core.jar:2.5.15]
> at 
> org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:957)
> [struts2-core.jar:2.5.15]
> at 
> org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:463)
> [struts2-core.jar:2.5.15]
> at 
> org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:496) 
> [struts2-core.jar:2.5.15]
> at 
> org.apache.struts2.dispatcher.InitOperations.initDispatcher(InitOperations.java:73)
> [struts2-core.jar:2.5.15]
> at 
> org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:61)
> [struts2-core.jar:2.5.15]
> at 
> weblogic.servlet.internal.FilterManager$FilterInitAction.run(FilterManager.java:400)
> [com.oracle.weblogic.servlet.jar:12.2.1.0]
> at 
> weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:326)
> [com.oracle.weblogic.security.subject.jar:12.2.1.0]
> at 
> weblogic.security.service.SecurityManager.runAsForUserCode(SecurityManager.java:196)
> [com.oracle.weblogic.security.subject.jar:12.2.1.0]
> at 
> weblogic.servlet.provider.WlsSecurityProvider.runAsForUserCode(WlsSecurityProvider.java:203)
> [com.oracle.weblogic.servlet.jar:12.2.1.0]
> at 
> weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:71)
> [com.oracle.weblogic.servlet.jar:12.2.1.0]
>

[jira] [Updated] (WW-4920) Could not create JarEntryRevision for [zip:C:/.... unknown protocol c

2018-02-19 Thread Lukasz Lenart (JIRA)

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

Lukasz Lenart updated WW-4920:
--
Fix Version/s: 2.5.16

> Could not create JarEntryRevision for [zip:C:/ unknown protocol c
> -
>
> Key: WW-4920
> URL: https://issues.apache.org/jira/browse/WW-4920
> Project: Struts 2
>  Issue Type: Bug
>  Components: Core
>Affects Versions: 2.5.15
> Environment: Weblogic server (Weblogic server version 12.2.1.2.0, JDK 
> v 1.8.0_101)
>Reporter: Yasser Zamani
>Assignee: Yasser Zamani
>Priority: Major
>  Labels: weblogic
> Fix For: 2.5.16
>
>
> This is a follow up for [BUG in 
> struts-2.5.15|http://mail-archives.apache.org/mod_mbox/struts-user/201802.mbox/browser].
> copy of report from user mail list:
> Hi all,
> Testing your upcoming struts-2.5.15, when starting Weblogic server (Weblogic 
> server version
> 12.2.1.2.0, JDK v 1.8.0_101), we see exception below.
> Thanks,
> Liem.
> 
> {code:java}
> 2018-02-14 10:28:37.194 WARN  - Could not create JarEntryRevision for 
> [zip:C:/Oracle/Middleware/Oracle_Home12.2.1.0.0/user_projects/domains/iwa_local_domain/servers/AdminServer/tmp/_WL_user/IWA/zfd81u/war/WEB-INF/lib/struts2-core.jar!/struts-default.xml]!
> java.net.MalformedURLException: unknown protocol: c
> at java.net.URL.(URL.java:600) ~[?:1.8.0_101]
> at java.net.URL.(URL.java:490) ~[?:1.8.0_101]
> at java.net.URL.(URL.java:439) ~[?:1.8.0_101]
> at 
> java.net.JarURLConnection.parseSpecs(JarURLConnection.java:175) ~[?:1.8.0_101]
> at 
> java.net.JarURLConnection.(JarURLConnection.java:158) ~[?:1.8.0_101]
> at 
> com.opensymphony.xwork2.util.fs.StrutsJarURLConnection.(StrutsJarURLConnection.java:44)
> ~[struts2-core.jar:2.5.15]
> at 
> com.opensymphony.xwork2.util.fs.StrutsJarURLConnection.openConnection(StrutsJarURLConnection.java:99)
> ~[struts2-core.jar:2.5.15]
> at 
> com.opensymphony.xwork2.util.fs.JarEntryRevision.build(JarEntryRevision.java:42)
> [struts2-core.jar:2.5.15]
> at 
> com.opensymphony.xwork2.util.fs.DefaultFileManager.monitorFile(DefaultFileManager.java:94)
> [struts2-core.jar:2.5.15]
> at 
> com.opensymphony.xwork2.util.fs.DefaultFileManager.loadFile(DefaultFileManager.java:73)
> [struts2-core.jar:2.5.15]
> at 
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:1054)
> [struts2-core.jar:2.5.15]
> at 
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:198)
> [struts2-core.jar:2.5.15]
> at 
> com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:165)
> [struts2-core.jar:2.5.15]
> at 
> com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:166)
> [struts2-core.jar:2.5.15]
> at 
> com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)
> [struts2-core.jar:2.5.15]
> at 
> org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:957)
> [struts2-core.jar:2.5.15]
> at 
> org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:463)
> [struts2-core.jar:2.5.15]
> at 
> org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:496) 
> [struts2-core.jar:2.5.15]
> at 
> org.apache.struts2.dispatcher.InitOperations.initDispatcher(InitOperations.java:73)
> [struts2-core.jar:2.5.15]
> at 
> org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:61)
> [struts2-core.jar:2.5.15]
> at 
> weblogic.servlet.internal.FilterManager$FilterInitAction.run(FilterManager.java:400)
> [com.oracle.weblogic.servlet.jar:12.2.1.0]
> at 
> weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:326)
> [com.oracle.weblogic.security.subject.jar:12.2.1.0]
> at 
> weblogic.security.service.SecurityManager.runAsForUserCode(SecurityManager.java:196)
> [com.oracle.weblogic.security.subject.jar:12.2.1.0]
> at 
> weblogic.servlet.provider.WlsSecurityProvider.runAsForUserCode(WlsSecurityProvider.java:203)
> [com.oracle.weblogic.servlet.jar:12.2.1.0]
> at 
> weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:71)
> [com.oracle.weblogic.servlet.jar:12.2.1.0]
> at 
>