[
https://issues.apache.org/jira/browse/AXIS2-5016?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Amila Maharachchi updated AXIS2-5016:
-------------------------------------
Attachment: AXIS2-5016.patch
I have prepared a patch for this. In this patch, I pass a hashtable to
calculateSchemaNames method. This hashtable keeps sourceUri vs target
namespaces.
In the insertIntoNameTable method, I check whether the sourceUri exists in the
nameTable. If yes, I check whether the existing sourceUri's target namespace is
equal to the target ns of the schema being processed. If they are equal, I dnt
allow to duplicate the schema. If they are different, I allow it to be
duplicated.
Please, apply this patch and see whether it is suitable.
> Additional characters appended to XSD names (XSD is duplicated) when same XSD
> is imported by several other XSDs
> ---------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-5016
> URL: https://issues.apache.org/jira/browse/AXIS2-5016
> Project: Axis2
> Issue Type: Bug
> Components: kernel
> Reporter: Amila Maharachchi
> Attachments: AXIS2-5016.patch
>
>
> When a XSD is imported by several other XSDs , then an additional character
> is appended to the name of the imported XSD. This can be seen when accessing
> ?xsd=<xsdname>. For example if MySchema.XSD is imported by several other
> XSDs, in one file it will be shown as below (Actually, the XSD is duplicated
> with a different name).
> <xs:import namespace="namespaceUrl"
> schemaLocation="MyService?xsd=MySchema.xsd" />
> In another XSD, it will be shown as
> <xs:import namespace="namespaceUrl"
> schemaLocation="MyService?xsd=MySchema0.xsd" />
> But ideally, in both occasions it should be shown as MySchema.xsd.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]