You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Andrei Shakirin (Created) (JIRA)" <ji...@apache.org> on 2011/12/22 10:22:30 UTC

[jira] [Created] (CXF-3996) Extend POLICY_OVERRIDE property to service IN

Extend POLICY_OVERRIDE property to service IN
---------------------------------------------

                 Key: CXF-3996
                 URL: https://issues.apache.org/jira/browse/CXF-3996
             Project: CXF
          Issue Type: Improvement
            Reporter: Andrei Shakirin
            Priority: Minor
         Attachments: PolicyInInterceptor.patch

Hi,

PolicyConstants.POLICY_OVERRIDE constant in PolicyInInterceptor provides the possibility to dynamically override 
the policy. I would like to reuse this mechanism in custom project to dynamically apply policies calculating in ServiceRegistry.

Solution works fine for client IN/OUT and for service OUT, but
unfortunately doesn't work for service IN. The reason is that code in 
PolicyInInterceptor checks PolicyConstants.POLICY_OVERRIDE only after  
"if (MessageUtils.isRequestor(msg))" statement. Therefore provider IN 
messages are ignored.

Corresponded patch is attached.

Regards,
Andrei.

--
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] (CXF-3996) Extend POLICY_OVERRIDE property to service IN

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

Daniel Kulp resolved CXF-3996.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.5.2
                   2.4.6
    
> Extend POLICY_OVERRIDE property to service IN
> ---------------------------------------------
>
>                 Key: CXF-3996
>                 URL: https://issues.apache.org/jira/browse/CXF-3996
>             Project: CXF
>          Issue Type: Improvement
>            Reporter: Andrei Shakirin
>            Assignee: Daniel Kulp
>            Priority: Minor
>             Fix For: 2.4.6, 2.5.2
>
>         Attachments: PolicyInInterceptor.patch
>
>
> Hi,
> PolicyConstants.POLICY_OVERRIDE constant in PolicyInInterceptor provides the possibility to dynamically override 
> the policy. I would like to reuse this mechanism in custom project to dynamically apply policies calculating in ServiceRegistry.
> Solution works fine for client IN/OUT and for service OUT, but
> unfortunately doesn't work for service IN. The reason is that code in 
> PolicyInInterceptor checks PolicyConstants.POLICY_OVERRIDE only after  
> "if (MessageUtils.isRequestor(msg))" statement. Therefore provider IN 
> messages are ignored.
> Corresponded patch is attached.
> Regards,
> Andrei.

--
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] (CXF-3996) Extend POLICY_OVERRIDE property to service IN

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

Andrei Shakirin updated CXF-3996:
---------------------------------

    Attachment: PolicyInInterceptor.patch

Patch
                
> Extend POLICY_OVERRIDE property to service IN
> ---------------------------------------------
>
>                 Key: CXF-3996
>                 URL: https://issues.apache.org/jira/browse/CXF-3996
>             Project: CXF
>          Issue Type: Improvement
>            Reporter: Andrei Shakirin
>            Priority: Minor
>         Attachments: PolicyInInterceptor.patch
>
>
> Hi,
> PolicyConstants.POLICY_OVERRIDE constant in PolicyInInterceptor provides the possibility to dynamically override 
> the policy. I would like to reuse this mechanism in custom project to dynamically apply policies calculating in ServiceRegistry.
> Solution works fine for client IN/OUT and for service OUT, but
> unfortunately doesn't work for service IN. The reason is that code in 
> PolicyInInterceptor checks PolicyConstants.POLICY_OVERRIDE only after  
> "if (MessageUtils.isRequestor(msg))" statement. Therefore provider IN 
> messages are ignored.
> Corresponded patch is attached.
> Regards,
> Andrei.

--
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] [Assigned] (CXF-3996) Extend POLICY_OVERRIDE property to service IN

Posted by "Daniel Kulp (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-3996?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp reassigned CXF-3996:
--------------------------------

    Assignee: Daniel Kulp
    
> Extend POLICY_OVERRIDE property to service IN
> ---------------------------------------------
>
>                 Key: CXF-3996
>                 URL: https://issues.apache.org/jira/browse/CXF-3996
>             Project: CXF
>          Issue Type: Improvement
>            Reporter: Andrei Shakirin
>            Assignee: Daniel Kulp
>            Priority: Minor
>         Attachments: PolicyInInterceptor.patch
>
>
> Hi,
> PolicyConstants.POLICY_OVERRIDE constant in PolicyInInterceptor provides the possibility to dynamically override 
> the policy. I would like to reuse this mechanism in custom project to dynamically apply policies calculating in ServiceRegistry.
> Solution works fine for client IN/OUT and for service OUT, but
> unfortunately doesn't work for service IN. The reason is that code in 
> PolicyInInterceptor checks PolicyConstants.POLICY_OVERRIDE only after  
> "if (MessageUtils.isRequestor(msg))" statement. Therefore provider IN 
> messages are ignored.
> Corresponded patch is attached.
> Regards,
> Andrei.

--
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