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 "Keith Godwin Chapman (JIRA)" <ji...@apache.org> on 2008/03/20 19:29:24 UTC

[jira] Created: (AXIS2-3643) dateTime echo failes when input is 9999-12-31T23:59:59.9999999Z

dateTime echo failes when input is 9999-12-31T23:59:59.9999999Z
---------------------------------------------------------------

                 Key: AXIS2-3643
                 URL: https://issues.apache.org/jira/browse/AXIS2-3643
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: adb
            Reporter: Keith Godwin Chapman
            Priority: Critical


If date time is echoed and it is given the input 9999-12-31T23:59:59.9999999Z the response is 9999-12-31T23:59:59.141+00:00. Here the milliseconds are incorrect and it looks like this happens because of the follwoing logic in ConverterUtil at lines 973

if (milliSecondPartLength != 3){
                // milisecond part represenst the fraction of the second so we have to
                // find the fraction and multiply it by 1000. So if milisecond part
                // has three digits nothing required
                miliSecond = miliSecond * 1000;
                for (int i = 0; i < milliSecondPartLength; i++) {
                    miliSecond = miliSecond / 10;
                }
            }

Here we multiply the milliseconds by 1000 and hence it overflows causing the problem.

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


[jira] Assigned: (AXIS2-3643) dateTime echo failes when input is 9999-12-31T23:59:59.9999999Z

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

Deepal Jayasinghe reassigned AXIS2-3643:
----------------------------------------

    Assignee: Amila Chinthaka Suriarachchi

> dateTime echo failes when input is 9999-12-31T23:59:59.9999999Z
> ---------------------------------------------------------------
>
>                 Key: AXIS2-3643
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3643
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: adb
>            Reporter: Keith Godwin Chapman
>            Assignee: Amila Chinthaka Suriarachchi
>            Priority: Critical
>
> If date time is echoed and it is given the input 9999-12-31T23:59:59.9999999Z the response is 9999-12-31T23:59:59.141+00:00. Here the milliseconds are incorrect and it looks like this happens because of the follwoing logic in ConverterUtil at lines 973
> if (milliSecondPartLength != 3){
>                 // milisecond part represenst the fraction of the second so we have to
>                 // find the fraction and multiply it by 1000. So if milisecond part
>                 // has three digits nothing required
>                 miliSecond = miliSecond * 1000;
>                 for (int i = 0; i < milliSecondPartLength; i++) {
>                     miliSecond = miliSecond / 10;
>                 }
>             }
> Here we multiply the milliseconds by 1000 and hence it overflows causing the problem.

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


[jira] Updated: (AXIS2-3643) dateTime echo failes when input is 9999-12-31T23:59:59.9999999Z

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

Keith Godwin Chapman updated AXIS2-3643:
----------------------------------------

    Fix Version/s: 1.4

> dateTime echo failes when input is 9999-12-31T23:59:59.9999999Z
> ---------------------------------------------------------------
>
>                 Key: AXIS2-3643
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3643
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: adb
>            Reporter: Keith Godwin Chapman
>            Priority: Critical
>             Fix For: 1.4
>
>
> If date time is echoed and it is given the input 9999-12-31T23:59:59.9999999Z the response is 9999-12-31T23:59:59.141+00:00. Here the milliseconds are incorrect and it looks like this happens because of the follwoing logic in ConverterUtil at lines 973
> if (milliSecondPartLength != 3){
>                 // milisecond part represenst the fraction of the second so we have to
>                 // find the fraction and multiply it by 1000. So if milisecond part
>                 // has three digits nothing required
>                 miliSecond = miliSecond * 1000;
>                 for (int i = 0; i < milliSecondPartLength; i++) {
>                     miliSecond = miliSecond / 10;
>                 }
>             }
> Here we multiply the milliseconds by 1000 and hence it overflows causing the problem.

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


[jira] Updated: (AXIS2-3643) dateTime echo failes when input is 9999-12-31T23:59:59.9999999Z

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

Davanum Srinivas updated AXIS2-3643:
------------------------------------

    Fix Version/s:     (was: 1.4)

not targetting for 1.4, unless someone submits a patch/testcase.

thanks,
dims

> dateTime echo failes when input is 9999-12-31T23:59:59.9999999Z
> ---------------------------------------------------------------
>
>                 Key: AXIS2-3643
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3643
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: adb
>            Reporter: Keith Godwin Chapman
>            Priority: Critical
>
> If date time is echoed and it is given the input 9999-12-31T23:59:59.9999999Z the response is 9999-12-31T23:59:59.141+00:00. Here the milliseconds are incorrect and it looks like this happens because of the follwoing logic in ConverterUtil at lines 973
> if (milliSecondPartLength != 3){
>                 // milisecond part represenst the fraction of the second so we have to
>                 // find the fraction and multiply it by 1000. So if milisecond part
>                 // has three digits nothing required
>                 miliSecond = miliSecond * 1000;
>                 for (int i = 0; i < milliSecondPartLength; i++) {
>                     miliSecond = miliSecond / 10;
>                 }
>             }
> Here we multiply the milliseconds by 1000 and hence it overflows causing the problem.

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