You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ode.apache.org by "Rafal Rusin (JIRA)" <ji...@apache.org> on 2009/09/24 10:26:16 UTC

[jira] Created: (ODE-667) Simple type variables conversion between Java and Saxon in JaxpVariableResolver is not correct

Simple type variables conversion between Java and Saxon in JaxpVariableResolver is not correct
----------------------------------------------------------------------------------------------

                 Key: ODE-667
                 URL: https://issues.apache.org/jira/browse/ODE-667
             Project: ODE
          Issue Type: Bug
          Components: BPEL Runtime
    Affects Versions: 1.3.3, 2.0
            Reporter: Rafal Rusin
            Assignee: Rafal Rusin


For example, if we have declared variable:
xsd:date d = '2009-01-01'

And we want to insert it into xml message using assign:
<assign>
  <from>$d</from>
  <to>$msg/some-date</to>
</assign>

we end up with msg containing:
<some-date>2009-01-01T00:00:00Z</some-date>

This is because JaxpVariableResolver converts xsd:date and xsd:dateTime to Java Date, which are indistinguishable and converted to xsd:dateTime by Saxon. 

Moreover, for example xsd:integers are converted into Java Longs, which may cause data loss, because xsd:integer is defined in xsd to be of arbitrary length.


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


[jira] Updated: (ODE-667) Simple type variables conversion between Java and Saxon in JaxpVariableResolver is not correct

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

Alexis Midon updated ODE-667:
-----------------------------

    Fix Version/s: Wishlist

> Simple type variables conversion between Java and Saxon in JaxpVariableResolver is not correct
> ----------------------------------------------------------------------------------------------
>
>                 Key: ODE-667
>                 URL: https://issues.apache.org/jira/browse/ODE-667
>             Project: ODE
>          Issue Type: Bug
>          Components: BPEL Runtime
>    Affects Versions: 1.3.3, 2.0
>            Reporter: Rafal Rusin
>            Assignee: Rafal Rusin
>             Fix For: Wishlist
>
>
> For example, if we have declared variable:
> xsd:date d = '2009-01-01'
> And we want to insert it into xml message using assign:
> <assign>
>   <from>$d</from>
>   <to>$msg/some-date</to>
> </assign>
> we end up with msg containing:
> <some-date>2009-01-01T00:00:00Z</some-date>
> This is because JaxpVariableResolver converts xsd:date and xsd:dateTime to Java Date, which are indistinguishable and converted to xsd:dateTime by Saxon. 
> Moreover, for example xsd:integers are converted into Java Longs, which may cause data loss, because xsd:integer is defined in xsd to be of arbitrary length.

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


[jira] Resolved: (ODE-667) Simple type variables conversion between Java and Saxon in JaxpVariableResolver is not correct

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

Rafal Rusin resolved ODE-667.
-----------------------------

       Resolution: Fixed
    Fix Version/s:     (was: Wishlist)
                   2.0

I submitted patch for trunk. 
I decided not to add it to 1.X branch, since this may cause incompatibility with existing bpel code. 
However if you would like to use it in 1.X, you can check it out here: http://github.com/rafalrusin/apache-ode/tree/APACHE_ODE_1.X-dates

> Simple type variables conversion between Java and Saxon in JaxpVariableResolver is not correct
> ----------------------------------------------------------------------------------------------
>
>                 Key: ODE-667
>                 URL: https://issues.apache.org/jira/browse/ODE-667
>             Project: ODE
>          Issue Type: Bug
>          Components: BPEL Runtime
>    Affects Versions: 1.3.3, 2.0
>            Reporter: Rafal Rusin
>            Assignee: Rafal Rusin
>             Fix For: 2.0
>
>
> For example, if we have declared variable:
> xsd:date d = '2009-01-01'
> And we want to insert it into xml message using assign:
> <assign>
>   <from>$d</from>
>   <to>$msg/some-date</to>
> </assign>
> we end up with msg containing:
> <some-date>2009-01-01T00:00:00Z</some-date>
> This is because JaxpVariableResolver converts xsd:date and xsd:dateTime to Java Date, which are indistinguishable and converted to xsd:dateTime by Saxon. 
> Moreover, for example xsd:integers are converted into Java Longs, which may cause data loss, because xsd:integer is defined in xsd to be of arbitrary length.

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