You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2016/06/12 11:11:21 UTC

[jira] [Commented] (WW-4632) SMI cannot be disabled

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

ASF subversion and git services commented on WW-4632:
-----------------------------------------------------

Commit e60119436a00a3ac177439c8e17d9743dc16a480 in struts's branch refs/heads/master from [~lukaszlenart]
[ https://git-wip-us.apache.org/repos/asf?p=struts.git;h=e601194 ]

WW-4632 Uses proper DTD version


> SMI cannot be disabled
> ----------------------
>
>                 Key: WW-4632
>                 URL: https://issues.apache.org/jira/browse/WW-4632
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.5
>            Reporter: Christoph Nenning
>            Priority: Minor
>             Fix For: 2.5.1
>
>
> My app uses json plugin and my root-package extends {{json-default}}. When I specify {{strict-method-invocation="false"}} on my root-package it is not possible to access any methods. I get exceptions like this:
> {noformat}
> com.opensymphony.xwork2.config.ConfigurationException: This method: login for action login is not allowed!
> 	at com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:200) ~[struts2-core-2.5.jar:2.5]
> 	at org.apache.struts2.factory.StrutsActionProxy.prepare(StrutsActionProxy.java:63) ~[struts2-core-2.5.jar:2.5]
> 	at org.apache.struts2.factory.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:37) ~[struts2-core-2.5.jar:2.5]
> 	at com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:58) ~[struts2-core-2.5.jar:2.5]
> 	at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:546) [struts2-core-2.5.jar:2.5]
> 	at org.apache.struts2.dispatcher.ExecuteOperations.executeAction(ExecuteOperations.java:81) [struts2-core-2.5.jar:2.5]
> 	at org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:113) [struts2-core-2.5.jar:2.5]
> {noformat}
> When I specify {{allowed methods}} (in xml or with annotations) I can access those.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)