[
https://issues.apache.org/jira/browse/WSCOMMONS-161?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rich Scheuerle updated WSCOMMONS-161:
-------------------------------------
Description:
Chunlong Liang found the following issue during C14N processing.
An OMSourcedElementImpl is constructed with a namespace, localPart and prefix.
When the OMSourcedElementImpl is expanded, the prefix should be updated with
the new value (from the OMDataSource parse).
I have supplied a patch that properly updates the prefix on the
OMSourcedElement during expansion.
NOTE: OMSourcedElementImpl verifies that the namespace uri and local name are
not changed during expansion. This validation is not changed by this patch.
This patch only updates the prefix name.
I have supplied 12 new tests that validate the behavior. I included tests that
intentionally fail if an attempt is made to use a namespace uri or local name
that is different than the one in the OMDataSource.
I have verified this patch with all of the Axiom and Axis2 tests. I will
commit the patches later today or Sunday.
Scheu
was:
Chunglong Liang found the following issue during C14N processing.
An OMSourcedElementImpl is constructed with a namespace, localPart and prefix.
When the OMSourcedElementImpl is expanded, the prefix (and ns and localPart)
should be updated with the new values (from the OMDataSource parse).
I am working on a test that demonstrates this problem.
> OMSourcedElementImpl forceExpand should update the prefix
> ---------------------------------------------------------
>
> Key: WSCOMMONS-161
> URL: https://issues.apache.org/jira/browse/WSCOMMONS-161
> Project: WS-Commons
> Issue Type: Bug
> Components: AXIOM
> Reporter: Rich Scheuerle
> Assigned To: Rich Scheuerle
> Attachments: codepatch.txt, testpatch.txt, testpatch.txt
>
>
> Chunlong Liang found the following issue during C14N processing.
> An OMSourcedElementImpl is constructed with a namespace, localPart and prefix.
> When the OMSourcedElementImpl is expanded, the prefix should be updated with
> the new value (from the OMDataSource parse).
> I have supplied a patch that properly updates the prefix on the
> OMSourcedElement during expansion.
> NOTE: OMSourcedElementImpl verifies that the namespace uri and local name are
> not changed during expansion. This validation is not changed by this patch.
> This patch only updates the prefix name.
> I have supplied 12 new tests that validate the behavior. I included tests
> that intentionally fail if an attempt is made to use a namespace uri or local
> name that is different than the one in the OMDataSource.
> I have verified this patch with all of the Axiom and Axis2 tests. I will
> commit the patches later today or Sunday.
> Scheu
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]