You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by "Detelin Yordanov (JIRA)" <ji...@apache.org> on 2008/03/26 09:21:24 UTC

[jira] Created: (WSCOMMONS-316) PolicyReference serialization problem

PolicyReference serialization problem
-------------------------------------

                 Key: WSCOMMONS-316
                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-316
             Project: WS-Commons
          Issue Type: Bug
          Components: Policy
         Environment: Windows XP, Tomcat 5.5, Axis2 1.3, Neethi 2.0.2
            Reporter: Detelin Yordanov


The PolicyReference.serialize(..) method does not write namespace declarations (e.g. for the "wsp" namespace).
This happens to be a problem, when a PolicyReference instance is serialized to a non-namespace repairing XMLOutputWriter as it happens in Axis2 PolicyUtil.getPolicyComponentAsOMElement(..).
The issue appears only if the PolicyReference is serialized and then parsed as a single element, since if it is part of a larger document, it will most probably
already contain the namespace declaration.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org


[jira] Updated: (WSCOMMONS-316) PolicyReference.serialize(..) does not declare policy namespace

Posted by "Detelin Yordanov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WSCOMMONS-316?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Detelin Yordanov updated WSCOMMONS-316:
---------------------------------------

    Summary: PolicyReference.serialize(..) does not declare policy namespace  (was: PolicyReference serialization problem)

> PolicyReference.serialize(..) does not declare policy namespace
> ---------------------------------------------------------------
>
>                 Key: WSCOMMONS-316
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-316
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: Policy
>         Environment: Windows XP, Tomcat 5.5, Axis2 1.3, Neethi 2.0.2
>            Reporter: Detelin Yordanov
>
> The PolicyReference.serialize(..) method does not write namespace declarations (e.g. for the "wsp" namespace).
> This happens to be a problem, when a PolicyReference instance is serialized to a non-namespace repairing XMLOutputWriter as it happens in Axis2 PolicyUtil.getPolicyComponentAsOMElement(..).
> The issue appears only if the PolicyReference is serialized and then parsed as a single element, since if it is part of a larger document, it will most probably
> already contain the namespace declaration.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org


[jira] Commented: (WSCOMMONS-316) PolicyReference.serialize(..) does not declare policy namespace

Posted by "Detelin Yordanov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WSCOMMONS-316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12589070#action_12589070 ] 

Detelin Yordanov commented on WSCOMMONS-316:
--------------------------------------------

Hello guys,
  I saw you've cut the 2.0.3 release and this bug is still opened :-(
The fix is as simple as adding the following line in the PolicyReference.serialize(XMLStreamWriter) method:

 writer.writeNamespace(Constants.ATTR_WSP, Constants.URI_POLICY_NS);

In the SVN log I can see this was present in the initial implementation provided by dims and later got lost.

Because of this issue Axis2 users are currently not able to deploy a POJO service with a user provided WSDL
containing <wsp:PolicyReference xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" URI="RM_Inactivity_Policy"/> 
elements.

> PolicyReference.serialize(..) does not declare policy namespace
> ---------------------------------------------------------------
>
>                 Key: WSCOMMONS-316
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-316
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: Policy
>         Environment: Windows XP, Tomcat 5.5, Axis2 1.3, Neethi 2.0.2
>            Reporter: Detelin Yordanov
>
> The PolicyReference.serialize(..) method does not write namespace declarations (e.g. for the "wsp" namespace).
> This happens to be a problem, when a PolicyReference instance is serialized to a non-namespace repairing XMLOutputWriter as it happens in Axis2 PolicyUtil.getPolicyComponentAsOMElement(..).
> The issue appears only if the PolicyReference is serialized and then parsed as a single element, since if it is part of a larger document, it will most probably
> already contain the namespace declaration.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org


[jira] Resolved: (WSCOMMONS-316) PolicyReference.serialize(..) does not declare policy namespace

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WSCOMMONS-316?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Davanum Srinivas resolved WSCOMMONS-316.
----------------------------------------

    Resolution: Fixed

Applied in svn revision 648290.

> PolicyReference.serialize(..) does not declare policy namespace
> ---------------------------------------------------------------
>
>                 Key: WSCOMMONS-316
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-316
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: Policy
>         Environment: Windows XP, Tomcat 5.5, Axis2 1.3, Neethi 2.0.2
>            Reporter: Detelin Yordanov
>         Attachments: PolicyReference.patch
>
>
> The PolicyReference.serialize(..) method does not write namespace declarations (e.g. for the "wsp" namespace).
> This happens to be a problem, when a PolicyReference instance is serialized to a non-namespace repairing XMLOutputWriter as it happens in Axis2 PolicyUtil.getPolicyComponentAsOMElement(..).
> The issue appears only if the PolicyReference is serialized and then parsed as a single element, since if it is part of a larger document, it will most probably
> already contain the namespace declaration.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org


[jira] Commented: (WSCOMMONS-316) PolicyReference.serialize(..) does not declare policy namespace

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WSCOMMONS-316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12589080#action_12589080 ] 

Davanum Srinivas commented on WSCOMMONS-316:
--------------------------------------------

Datelin,

Can you please submit a "svn diff" against latest trunk?

thanks,
dims

> PolicyReference.serialize(..) does not declare policy namespace
> ---------------------------------------------------------------
>
>                 Key: WSCOMMONS-316
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-316
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: Policy
>         Environment: Windows XP, Tomcat 5.5, Axis2 1.3, Neethi 2.0.2
>            Reporter: Detelin Yordanov
>
> The PolicyReference.serialize(..) method does not write namespace declarations (e.g. for the "wsp" namespace).
> This happens to be a problem, when a PolicyReference instance is serialized to a non-namespace repairing XMLOutputWriter as it happens in Axis2 PolicyUtil.getPolicyComponentAsOMElement(..).
> The issue appears only if the PolicyReference is serialized and then parsed as a single element, since if it is part of a larger document, it will most probably
> already contain the namespace declaration.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org


[jira] Updated: (WSCOMMONS-316) PolicyReference.serialize(..) does not declare policy namespace

Posted by "Detelin Yordanov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WSCOMMONS-316?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Detelin Yordanov updated WSCOMMONS-316:
---------------------------------------

    Attachment:     (was: PolicyReference.patch)

> PolicyReference.serialize(..) does not declare policy namespace
> ---------------------------------------------------------------
>
>                 Key: WSCOMMONS-316
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-316
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: Policy
>         Environment: Windows XP, Tomcat 5.5, Axis2 1.3, Neethi 2.0.2
>            Reporter: Detelin Yordanov
>
> The PolicyReference.serialize(..) method does not write namespace declarations (e.g. for the "wsp" namespace).
> This happens to be a problem, when a PolicyReference instance is serialized to a non-namespace repairing XMLOutputWriter as it happens in Axis2 PolicyUtil.getPolicyComponentAsOMElement(..).
> The issue appears only if the PolicyReference is serialized and then parsed as a single element, since if it is part of a larger document, it will most probably
> already contain the namespace declaration.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org


[jira] Updated: (WSCOMMONS-316) PolicyReference.serialize(..) does not declare policy namespace

Posted by "Detelin Yordanov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WSCOMMONS-316?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Detelin Yordanov updated WSCOMMONS-316:
---------------------------------------

    Attachment: PolicyReference.patch

Hi, 
  Thanks for looking into this. Here it is the patch.
Regards,
   Detelin

> PolicyReference.serialize(..) does not declare policy namespace
> ---------------------------------------------------------------
>
>                 Key: WSCOMMONS-316
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-316
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: Policy
>         Environment: Windows XP, Tomcat 5.5, Axis2 1.3, Neethi 2.0.2
>            Reporter: Detelin Yordanov
>         Attachments: PolicyReference.patch
>
>
> The PolicyReference.serialize(..) method does not write namespace declarations (e.g. for the "wsp" namespace).
> This happens to be a problem, when a PolicyReference instance is serialized to a non-namespace repairing XMLOutputWriter as it happens in Axis2 PolicyUtil.getPolicyComponentAsOMElement(..).
> The issue appears only if the PolicyReference is serialized and then parsed as a single element, since if it is part of a larger document, it will most probably
> already contain the namespace declaration.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org


[jira] Updated: (WSCOMMONS-316) PolicyReference.serialize(..) does not declare policy namespace

Posted by "Detelin Yordanov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WSCOMMONS-316?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Detelin Yordanov updated WSCOMMONS-316:
---------------------------------------

    Attachment: PolicyReference.patch

Sorry, was not against latest revision, now it is.

> PolicyReference.serialize(..) does not declare policy namespace
> ---------------------------------------------------------------
>
>                 Key: WSCOMMONS-316
>                 URL: https://issues.apache.org/jira/browse/WSCOMMONS-316
>             Project: WS-Commons
>          Issue Type: Bug
>          Components: Policy
>         Environment: Windows XP, Tomcat 5.5, Axis2 1.3, Neethi 2.0.2
>            Reporter: Detelin Yordanov
>         Attachments: PolicyReference.patch
>
>
> The PolicyReference.serialize(..) method does not write namespace declarations (e.g. for the "wsp" namespace).
> This happens to be a problem, when a PolicyReference instance is serialized to a non-namespace repairing XMLOutputWriter as it happens in Axis2 PolicyUtil.getPolicyComponentAsOMElement(..).
> The issue appears only if the PolicyReference is serialized and then parsed as a single element, since if it is part of a larger document, it will most probably
> already contain the namespace declaration.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org