axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Amila Maharachchi (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AXIS2-5016) Additional characters appended to XSD names (XSD is duplicated) when same XSD is imported by several other XSDs
Date Sat, 07 May 2011 16:12:03 GMT

     [ 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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message