You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Kristof Vanbecelaere (Created) (JIRA)" <ji...@apache.org> on 2011/11/28 13:38:39 UTC

[jira] [Created] (WW-3713) Allow results from POST and restore compatibility with struts-rest-plugin version 2.2.1

Allow results from POST and restore compatibility with struts-rest-plugin version 2.2.1
---------------------------------------------------------------------------------------

                 Key: WW-3713
                 URL: https://issues.apache.org/jira/browse/WW-3713
             Project: Struts 2
          Issue Type: Improvement
          Components: Plugin - REST
    Affects Versions: 2.2.3
            Reporter: Kristof Vanbecelaere
            Priority: Blocker
             Fix For: 2.2.x


Some time ago I posted a message on the mailing list but got no reply. See http://struts.1045723.n5.nabble.com/struts-rest-plugin-2-2-3-result-from-POST-td4469274.html

We really would like to update to newer versions of the REST plugin and benefit from the security fixes but we absolutely care about backward-compatibility. We are aware that it is not a "valid" REST practice to return results from POST operations and we wish we had not done so in the first place. Unfortunately, to remain backward compatible we have no choice. Do you see a way to restore the 2.2.1 behavior to allow us to remain backward-compatible?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (WW-3713) Allow results from POST and restore compatibility with struts-rest-plugin version 2.2.1

Posted by "Kristof Vanbecelaere (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WW-3713?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kristof Vanbecelaere updated WW-3713:
-------------------------------------

    Description: 
Some time ago I posted a message on the mailing list but got no reply. See http://struts.1045723.n5.nabble.com/struts-rest-plugin-2-2-3-result-from-POST-td4469274.html

We really would like to update to newer versions of Struts and benefit from the security fixes but we absolutely care about backward-compatibility. We are aware that it is not a "valid" REST practice to return results from POST operations and we wish we had not done so in the first place. Unfortunately, to remain backward compatible we have no choice. Do you see a way to restore the 2.2.1 behavior to allow us to remain backward-compatible?

  was:
Some time ago I posted a message on the mailing list but got no reply. See http://struts.1045723.n5.nabble.com/struts-rest-plugin-2-2-3-result-from-POST-td4469274.html

We really would like to update to newer versions of the REST plugin and benefit from the security fixes but we absolutely care about backward-compatibility. We are aware that it is not a "valid" REST practice to return results from POST operations and we wish we had not done so in the first place. Unfortunately, to remain backward compatible we have no choice. Do you see a way to restore the 2.2.1 behavior to allow us to remain backward-compatible?

    
> Allow results from POST and restore compatibility with struts-rest-plugin version 2.2.1
> ---------------------------------------------------------------------------------------
>
>                 Key: WW-3713
>                 URL: https://issues.apache.org/jira/browse/WW-3713
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Plugin - REST
>    Affects Versions: 2.2.3
>            Reporter: Kristof Vanbecelaere
>            Priority: Blocker
>             Fix For: 2.2.x
>
>
> Some time ago I posted a message on the mailing list but got no reply. See http://struts.1045723.n5.nabble.com/struts-rest-plugin-2-2-3-result-from-POST-td4469274.html
> We really would like to update to newer versions of Struts and benefit from the security fixes but we absolutely care about backward-compatibility. We are aware that it is not a "valid" REST practice to return results from POST operations and we wish we had not done so in the first place. Unfortunately, to remain backward compatible we have no choice. Do you see a way to restore the 2.2.1 behavior to allow us to remain backward-compatible?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (WW-3713) Allow results from POST and restore compatibility with struts-rest-plugin version 2.2.1

Posted by "Lukasz Lenart (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3713?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13159178#comment-13159178 ] 

Lukasz Lenart edited comment on WW-3713 at 11/29/11 10:07 AM:
--------------------------------------------------------------

Solved! Also the docs were updated [1]

[1] https://cwiki.apache.org/confluence/display/WW/REST+Plugin
                
      was (Author: lukaszlenart):
    Solved!
                  
> Allow results from POST and restore compatibility with struts-rest-plugin version 2.2.1
> ---------------------------------------------------------------------------------------
>
>                 Key: WW-3713
>                 URL: https://issues.apache.org/jira/browse/WW-3713
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Plugin - REST
>    Affects Versions: 2.2.3
>            Reporter: Kristof Vanbecelaere
>            Assignee: Lukasz Lenart
>            Priority: Blocker
>             Fix For: 2.2.x, 2.3
>
>         Attachments: WW-3713-1.patch
>
>
> Some time ago I posted a message on the mailing list but got no reply. See http://struts.1045723.n5.nabble.com/struts-rest-plugin-2-2-3-result-from-POST-td4469274.html
> We really would like to update to newer versions of Struts and benefit from the security fixes but we absolutely care about backward-compatibility. We are aware that it is not a "valid" REST practice to return results from POST operations and we wish we had not done so in the first place. Unfortunately, to remain backward compatible we have no choice. Do you see a way to restore the 2.2.1 behavior to allow us to remain backward-compatible?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WW-3713) Allow results from POST and restore compatibility with struts-rest-plugin version 2.2.1

Posted by "Kristof Vanbecelaere (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3713?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13158719#comment-13158719 ] 

Kristof Vanbecelaere commented on WW-3713:
------------------------------------------

Sure.
                
> Allow results from POST and restore compatibility with struts-rest-plugin version 2.2.1
> ---------------------------------------------------------------------------------------
>
>                 Key: WW-3713
>                 URL: https://issues.apache.org/jira/browse/WW-3713
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Plugin - REST
>    Affects Versions: 2.2.3
>            Reporter: Kristof Vanbecelaere
>            Priority: Blocker
>             Fix For: 2.2.x
>
>         Attachments: WW-3713-1.patch
>
>
> Some time ago I posted a message on the mailing list but got no reply. See http://struts.1045723.n5.nabble.com/struts-rest-plugin-2-2-3-result-from-POST-td4469274.html
> We really would like to update to newer versions of Struts and benefit from the security fixes but we absolutely care about backward-compatibility. We are aware that it is not a "valid" REST practice to return results from POST operations and we wish we had not done so in the first place. Unfortunately, to remain backward compatible we have no choice. Do you see a way to restore the 2.2.1 behavior to allow us to remain backward-compatible?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (WW-3713) Allow results from POST and restore compatibility with struts-rest-plugin version 2.2.1

Posted by "Lukasz Lenart (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WW-3713?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukasz Lenart resolved WW-3713.
-------------------------------

       Resolution: Fixed
    Fix Version/s: 2.3
         Assignee: Lukasz Lenart

Solved!
                
> Allow results from POST and restore compatibility with struts-rest-plugin version 2.2.1
> ---------------------------------------------------------------------------------------
>
>                 Key: WW-3713
>                 URL: https://issues.apache.org/jira/browse/WW-3713
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Plugin - REST
>    Affects Versions: 2.2.3
>            Reporter: Kristof Vanbecelaere
>            Assignee: Lukasz Lenart
>            Priority: Blocker
>             Fix For: 2.2.x, 2.3
>
>         Attachments: WW-3713-1.patch
>
>
> Some time ago I posted a message on the mailing list but got no reply. See http://struts.1045723.n5.nabble.com/struts-rest-plugin-2-2-3-result-from-POST-td4469274.html
> We really would like to update to newer versions of Struts and benefit from the security fixes but we absolutely care about backward-compatibility. We are aware that it is not a "valid" REST practice to return results from POST operations and we wish we had not done so in the first place. Unfortunately, to remain backward compatible we have no choice. Do you see a way to restore the 2.2.1 behavior to allow us to remain backward-compatible?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Closed] (WW-3713) Allow results from POST and restore compatibility with struts-rest-plugin version 2.2.1

Posted by "Lukasz Lenart (Closed) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WW-3713?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukasz Lenart closed WW-3713.
-----------------------------

    
> Allow results from POST and restore compatibility with struts-rest-plugin version 2.2.1
> ---------------------------------------------------------------------------------------
>
>                 Key: WW-3713
>                 URL: https://issues.apache.org/jira/browse/WW-3713
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Plugin - REST
>    Affects Versions: 2.2.3
>            Reporter: Kristof Vanbecelaere
>            Assignee: Lukasz Lenart
>            Priority: Blocker
>             Fix For: 2.2.x, 2.3
>
>         Attachments: WW-3713-1.patch
>
>
> Some time ago I posted a message on the mailing list but got no reply. See http://struts.1045723.n5.nabble.com/struts-rest-plugin-2-2-3-result-from-POST-td4469274.html
> We really would like to update to newer versions of Struts and benefit from the security fixes but we absolutely care about backward-compatibility. We are aware that it is not a "valid" REST practice to return results from POST operations and we wish we had not done so in the first place. Unfortunately, to remain backward compatible we have no choice. Do you see a way to restore the 2.2.1 behavior to allow us to remain backward-compatible?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WW-3713) Allow results from POST and restore compatibility with struts-rest-plugin version 2.2.1

Posted by "Lukasz Lenart (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3713?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13158683#comment-13158683 ] 

Lukasz Lenart commented on WW-3713:
-----------------------------------

Could you test against the latest snapshot version (after I commit) ?
                
> Allow results from POST and restore compatibility with struts-rest-plugin version 2.2.1
> ---------------------------------------------------------------------------------------
>
>                 Key: WW-3713
>                 URL: https://issues.apache.org/jira/browse/WW-3713
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Plugin - REST
>    Affects Versions: 2.2.3
>            Reporter: Kristof Vanbecelaere
>            Priority: Blocker
>             Fix For: 2.2.x
>
>         Attachments: WW-3713-1.patch
>
>
> Some time ago I posted a message on the mailing list but got no reply. See http://struts.1045723.n5.nabble.com/struts-rest-plugin-2-2-3-result-from-POST-td4469274.html
> We really would like to update to newer versions of Struts and benefit from the security fixes but we absolutely care about backward-compatibility. We are aware that it is not a "valid" REST practice to return results from POST operations and we wish we had not done so in the first place. Unfortunately, to remain backward compatible we have no choice. Do you see a way to restore the 2.2.1 behavior to allow us to remain backward-compatible?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WW-3713) Allow results from POST and restore compatibility with struts-rest-plugin version 2.2.1

Posted by "Lukasz Lenart (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3713?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13158736#comment-13158736 ] 

Lukasz Lenart commented on WW-3713:
-----------------------------------

Ok, committed, please till Jenkins post a comment and you can download the latest version from here [1] or using Maven

[1] https://builds.apache.org//view/S-Z/view/Struts/job/Struts2/lastStableBuild/
                
> Allow results from POST and restore compatibility with struts-rest-plugin version 2.2.1
> ---------------------------------------------------------------------------------------
>
>                 Key: WW-3713
>                 URL: https://issues.apache.org/jira/browse/WW-3713
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Plugin - REST
>    Affects Versions: 2.2.3
>            Reporter: Kristof Vanbecelaere
>            Priority: Blocker
>             Fix For: 2.2.x
>
>         Attachments: WW-3713-1.patch
>
>
> Some time ago I posted a message on the mailing list but got no reply. See http://struts.1045723.n5.nabble.com/struts-rest-plugin-2-2-3-result-from-POST-td4469274.html
> We really would like to update to newer versions of Struts and benefit from the security fixes but we absolutely care about backward-compatibility. We are aware that it is not a "valid" REST practice to return results from POST operations and we wish we had not done so in the first place. Unfortunately, to remain backward compatible we have no choice. Do you see a way to restore the 2.2.1 behavior to allow us to remain backward-compatible?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (WW-3713) Allow results from POST and restore compatibility with struts-rest-plugin version 2.2.1

Posted by "Lukasz Lenart (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WW-3713?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Lukasz Lenart updated WW-3713:
------------------------------

    Attachment: WW-3713-1.patch

Is a sufficient solution for you ? I've added flag, struts.rest.content.restirctToGET to allow disable returning content for other methods than GET
                
> Allow results from POST and restore compatibility with struts-rest-plugin version 2.2.1
> ---------------------------------------------------------------------------------------
>
>                 Key: WW-3713
>                 URL: https://issues.apache.org/jira/browse/WW-3713
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Plugin - REST
>    Affects Versions: 2.2.3
>            Reporter: Kristof Vanbecelaere
>            Priority: Blocker
>             Fix For: 2.2.x
>
>         Attachments: WW-3713-1.patch
>
>
> Some time ago I posted a message on the mailing list but got no reply. See http://struts.1045723.n5.nabble.com/struts-rest-plugin-2-2-3-result-from-POST-td4469274.html
> We really would like to update to newer versions of Struts and benefit from the security fixes but we absolutely care about backward-compatibility. We are aware that it is not a "valid" REST practice to return results from POST operations and we wish we had not done so in the first place. Unfortunately, to remain backward compatible we have no choice. Do you see a way to restore the 2.2.1 behavior to allow us to remain backward-compatible?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WW-3713) Allow results from POST and restore compatibility with struts-rest-plugin version 2.2.1

Posted by "Philip Luppens (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3713?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13158414#comment-13158414 ] 

Philip Luppens commented on WW-3713:
------------------------------------

I cannot really comment on the issue (since I'm not using the REST plugin), but I do not see a reason to be too uptight about 'valid' REST practices (as in: we need to advocate it, but it should be possible to (ab)use a certain feature if you want/need to, esp. if it was published before and removed without deprecation warning). Anyways, as always, a patch goes a long way, and has a greater likelihood of getting accepted if it's accompanied by some tests and documentation.
                
> Allow results from POST and restore compatibility with struts-rest-plugin version 2.2.1
> ---------------------------------------------------------------------------------------
>
>                 Key: WW-3713
>                 URL: https://issues.apache.org/jira/browse/WW-3713
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Plugin - REST
>    Affects Versions: 2.2.3
>            Reporter: Kristof Vanbecelaere
>            Priority: Blocker
>             Fix For: 2.2.x
>
>         Attachments: WW-3713-1.patch
>
>
> Some time ago I posted a message on the mailing list but got no reply. See http://struts.1045723.n5.nabble.com/struts-rest-plugin-2-2-3-result-from-POST-td4469274.html
> We really would like to update to newer versions of Struts and benefit from the security fixes but we absolutely care about backward-compatibility. We are aware that it is not a "valid" REST practice to return results from POST operations and we wish we had not done so in the first place. Unfortunately, to remain backward compatible we have no choice. Do you see a way to restore the 2.2.1 behavior to allow us to remain backward-compatible?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WW-3713) Allow results from POST and restore compatibility with struts-rest-plugin version 2.2.1

Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3713?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13158772#comment-13158772 ] 

Hudson commented on WW-3713:
----------------------------

Integrated in Struts2 #378 (See [https://builds.apache.org/job/Struts2/378/])
    WW-3713 allows to return content not only for GET method

lukaszlenart : 
Files : 
* /struts/struts2/trunk/plugins/rest/src/main/java/org/apache/struts2/rest/RestActionInvocation.java
* /struts/struts2/trunk/plugins/rest/src/test/java/org/apache/struts2/rest/RestActionInvocationTest.java

                
> Allow results from POST and restore compatibility with struts-rest-plugin version 2.2.1
> ---------------------------------------------------------------------------------------
>
>                 Key: WW-3713
>                 URL: https://issues.apache.org/jira/browse/WW-3713
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Plugin - REST
>    Affects Versions: 2.2.3
>            Reporter: Kristof Vanbecelaere
>            Priority: Blocker
>             Fix For: 2.2.x
>
>         Attachments: WW-3713-1.patch
>
>
> Some time ago I posted a message on the mailing list but got no reply. See http://struts.1045723.n5.nabble.com/struts-rest-plugin-2-2-3-result-from-POST-td4469274.html
> We really would like to update to newer versions of Struts and benefit from the security fixes but we absolutely care about backward-compatibility. We are aware that it is not a "valid" REST practice to return results from POST operations and we wish we had not done so in the first place. Unfortunately, to remain backward compatible we have no choice. Do you see a way to restore the 2.2.1 behavior to allow us to remain backward-compatible?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WW-3713) Allow results from POST and restore compatibility with struts-rest-plugin version 2.2.1

Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3713?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13159290#comment-13159290 ] 

Hudson commented on WW-3713:
----------------------------

Integrated in Struts2 #379 (See [https://builds.apache.org/job/Struts2/379/])
    WW-3713 allows to return content not only for GET method - correct misspelled word

lukaszlenart : 
Files : 
* /struts/struts2/trunk/plugins/rest/src/main/java/org/apache/struts2/rest/RestActionInvocation.java

                
> Allow results from POST and restore compatibility with struts-rest-plugin version 2.2.1
> ---------------------------------------------------------------------------------------
>
>                 Key: WW-3713
>                 URL: https://issues.apache.org/jira/browse/WW-3713
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Plugin - REST
>    Affects Versions: 2.2.3
>            Reporter: Kristof Vanbecelaere
>            Assignee: Lukasz Lenart
>            Priority: Blocker
>             Fix For: 2.2.x, 2.3
>
>         Attachments: WW-3713-1.patch
>
>
> Some time ago I posted a message on the mailing list but got no reply. See http://struts.1045723.n5.nabble.com/struts-rest-plugin-2-2-3-result-from-POST-td4469274.html
> We really would like to update to newer versions of Struts and benefit from the security fixes but we absolutely care about backward-compatibility. We are aware that it is not a "valid" REST practice to return results from POST operations and we wish we had not done so in the first place. Unfortunately, to remain backward compatible we have no choice. Do you see a way to restore the 2.2.1 behavior to allow us to remain backward-compatible?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WW-3713) Allow results from POST and restore compatibility with struts-rest-plugin version 2.2.1

Posted by "Philip Luppens (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3713?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13158418#comment-13158418 ] 

Philip Luppens commented on WW-3713:
------------------------------------

Aaaaaand Lukasz scores again. Thanks for looking into this.
                
> Allow results from POST and restore compatibility with struts-rest-plugin version 2.2.1
> ---------------------------------------------------------------------------------------
>
>                 Key: WW-3713
>                 URL: https://issues.apache.org/jira/browse/WW-3713
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Plugin - REST
>    Affects Versions: 2.2.3
>            Reporter: Kristof Vanbecelaere
>            Priority: Blocker
>             Fix For: 2.2.x
>
>         Attachments: WW-3713-1.patch
>
>
> Some time ago I posted a message on the mailing list but got no reply. See http://struts.1045723.n5.nabble.com/struts-rest-plugin-2-2-3-result-from-POST-td4469274.html
> We really would like to update to newer versions of Struts and benefit from the security fixes but we absolutely care about backward-compatibility. We are aware that it is not a "valid" REST practice to return results from POST operations and we wish we had not done so in the first place. Unfortunately, to remain backward compatible we have no choice. Do you see a way to restore the 2.2.1 behavior to allow us to remain backward-compatible?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WW-3713) Allow results from POST and restore compatibility with struts-rest-plugin version 2.2.1

Posted by "Kristof Vanbecelaere (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3713?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13159173#comment-13159173 ] 

Kristof Vanbecelaere commented on WW-3713:
------------------------------------------

Latest snapshot with new setting enabled works fine for me. Thanks!
                
> Allow results from POST and restore compatibility with struts-rest-plugin version 2.2.1
> ---------------------------------------------------------------------------------------
>
>                 Key: WW-3713
>                 URL: https://issues.apache.org/jira/browse/WW-3713
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Plugin - REST
>    Affects Versions: 2.2.3
>            Reporter: Kristof Vanbecelaere
>            Priority: Blocker
>             Fix For: 2.2.x
>
>         Attachments: WW-3713-1.patch
>
>
> Some time ago I posted a message on the mailing list but got no reply. See http://struts.1045723.n5.nabble.com/struts-rest-plugin-2-2-3-result-from-POST-td4469274.html
> We really would like to update to newer versions of Struts and benefit from the security fixes but we absolutely care about backward-compatibility. We are aware that it is not a "valid" REST practice to return results from POST operations and we wish we had not done so in the first place. Unfortunately, to remain backward compatible we have no choice. Do you see a way to restore the 2.2.1 behavior to allow us to remain backward-compatible?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Issue Comment Edited] (WW-3713) Allow results from POST and restore compatibility with struts-rest-plugin version 2.2.1

Posted by "Lukasz Lenart (Issue Comment Edited) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3713?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13158410#comment-13158410 ] 

Lukasz Lenart edited comment on WW-3713 at 11/28/11 1:11 PM:
-------------------------------------------------------------

Is it a sufficient solution for you ? I've added struts.rest.content.restirctToGET flag to allow disable returning content for other methods than GET
                
      was (Author: lukaszlenart):
    Is a sufficient solution for you ? I've added flag, struts.rest.content.restirctToGET to allow disable returning content for other methods than GET
                  
> Allow results from POST and restore compatibility with struts-rest-plugin version 2.2.1
> ---------------------------------------------------------------------------------------
>
>                 Key: WW-3713
>                 URL: https://issues.apache.org/jira/browse/WW-3713
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Plugin - REST
>    Affects Versions: 2.2.3
>            Reporter: Kristof Vanbecelaere
>            Priority: Blocker
>             Fix For: 2.2.x
>
>         Attachments: WW-3713-1.patch
>
>
> Some time ago I posted a message on the mailing list but got no reply. See http://struts.1045723.n5.nabble.com/struts-rest-plugin-2-2-3-result-from-POST-td4469274.html
> We really would like to update to newer versions of Struts and benefit from the security fixes but we absolutely care about backward-compatibility. We are aware that it is not a "valid" REST practice to return results from POST operations and we wish we had not done so in the first place. Unfortunately, to remain backward compatible we have no choice. Do you see a way to restore the 2.2.1 behavior to allow us to remain backward-compatible?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WW-3713) Allow results from POST and restore compatibility with struts-rest-plugin version 2.2.1

Posted by "Philip Luppens (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3713?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13158425#comment-13158425 ] 

Philip Luppens commented on WW-3713:
------------------------------------

Oh, Kristof - just one thing: if you want, please post a followup on the old mailing list post. If people are finding it via a search engine, it would be nice for them to find the reply that points them to the issue posted here.
                
> Allow results from POST and restore compatibility with struts-rest-plugin version 2.2.1
> ---------------------------------------------------------------------------------------
>
>                 Key: WW-3713
>                 URL: https://issues.apache.org/jira/browse/WW-3713
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Plugin - REST
>    Affects Versions: 2.2.3
>            Reporter: Kristof Vanbecelaere
>            Priority: Blocker
>             Fix For: 2.2.x
>
>         Attachments: WW-3713-1.patch
>
>
> Some time ago I posted a message on the mailing list but got no reply. See http://struts.1045723.n5.nabble.com/struts-rest-plugin-2-2-3-result-from-POST-td4469274.html
> We really would like to update to newer versions of Struts and benefit from the security fixes but we absolutely care about backward-compatibility. We are aware that it is not a "valid" REST practice to return results from POST operations and we wish we had not done so in the first place. Unfortunately, to remain backward compatible we have no choice. Do you see a way to restore the 2.2.1 behavior to allow us to remain backward-compatible?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WW-3713) Allow results from POST and restore compatibility with struts-rest-plugin version 2.2.1

Posted by "Kristof Vanbecelaere (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WW-3713?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13158502#comment-13158502 ] 

Kristof Vanbecelaere commented on WW-3713:
------------------------------------------

Yes something along those lines was what I had in mind.
                
> Allow results from POST and restore compatibility with struts-rest-plugin version 2.2.1
> ---------------------------------------------------------------------------------------
>
>                 Key: WW-3713
>                 URL: https://issues.apache.org/jira/browse/WW-3713
>             Project: Struts 2
>          Issue Type: Improvement
>          Components: Plugin - REST
>    Affects Versions: 2.2.3
>            Reporter: Kristof Vanbecelaere
>            Priority: Blocker
>             Fix For: 2.2.x
>
>         Attachments: WW-3713-1.patch
>
>
> Some time ago I posted a message on the mailing list but got no reply. See http://struts.1045723.n5.nabble.com/struts-rest-plugin-2-2-3-result-from-POST-td4469274.html
> We really would like to update to newer versions of Struts and benefit from the security fixes but we absolutely care about backward-compatibility. We are aware that it is not a "valid" REST practice to return results from POST operations and we wish we had not done so in the first place. Unfortunately, to remain backward compatible we have no choice. Do you see a way to restore the 2.2.1 behavior to allow us to remain backward-compatible?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira