You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Amila Maharachchi (JIRA)" <ji...@apache.org> on 2011/04/29 13:51:03 UTC

[jira] [Created] (AXIS2-5016) Additional characters appended to XSD names when same XSD is imported by several other XSDs

Additional characters appended to XSD names 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


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


[jira] [Updated] (AXIS2-5016) Additional characters appended to XSD names (XSD is duplicated) when same XSD is imported by several other XSDs

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

Amila Maharachchi updated AXIS2-5016:
-------------------------------------

    Description: 
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.

  was:
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.
<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.

        Summary: Additional characters appended to XSD names (XSD is duplicated) when same XSD is imported by several other XSDs  (was: Additional characters appended to XSD names when same XSD is imported by several other XSDs)

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


JIRA 4036 BigDecimal to xs:decimal

Posted by philippe Serenne <ps...@projescience.com>.
Hello all

I just wanted to bring you what I think to be the bug solution on JIRA 4036 as the commited source on Mai 09 doesn't solve the problemn of the decimal conversion

The issue is the the convertToString methods have diffrenet prototype (object, Byte, int, ...) but no prototype taking a BigDecimal as argument.

So The bug is solved by adding a method with the right signature :

   public static String convertToString(BigDecimal o) {
         return o.toPlainString();
     }

I did it, regenerate the adb jar, it works, but it could be nice for me if the next release can integrate it..

Best regards
Philippe




-- 


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


[jira] [Updated] (AXIS2-5016) Additional characters appended to XSD names (XSD is duplicated) when same XSD is imported by several other XSDs

Posted by "Amila Maharachchi (JIRA)" <ji...@apache.org>.
     [ 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