You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "James Clark (JIRA)" <ji...@apache.org> on 2006/09/09 14:36:22 UTC

[jira] Created: (AXIS2C-274) rampart_generate_time should use date time stuff from util

rampart_generate_time should use date time stuff from util
----------------------------------------------------------

                 Key: AXIS2C-274
                 URL: http://issues.apache.org/jira/browse/AXIS2C-274
             Project: Axis2-C
          Issue Type: Improvement
          Components: util
    Affects Versions: Current (Nightly)
            Reporter: James Clark
            Priority: Minor


rampart_generate_time looks suspicious to me.  It shouldn't be calling system functions directly.  This sort of thing belongs in util.  Why isn't it using axis2_date_time_*?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Closed: (AXIS2C-274) rampart_generate_time should use date time stuff from util

Posted by "Malinda Kaushalye Kapuruge (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2C-274?page=all ]

Malinda Kaushalye Kapuruge closed AXIS2C-274.
---------------------------------------------

    Fix Version/s: Current (Nightly)
       Resolution: Fixed

Modified the axis2_date_time_* to support generating time structs other than the current time. 
Rampart now uses axis2_date_time_* instead of its own implementation.

> rampart_generate_time should use date time stuff from util
> ----------------------------------------------------------
>
>                 Key: AXIS2C-274
>                 URL: http://issues.apache.org/jira/browse/AXIS2C-274
>             Project: Axis2-C
>          Issue Type: Improvement
>          Components: util
>    Affects Versions: Current (Nightly)
>            Reporter: James Clark
>         Assigned To: Malinda Kaushalye Kapuruge
>            Priority: Minor
>             Fix For: Current (Nightly)
>
>
> rampart_generate_time looks suspicious to me.  It shouldn't be calling system functions directly.  This sort of thing belongs in util.  Why isn't it using axis2_date_time_*?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Assigned: (AXIS2C-274) rampart_generate_time should use date time stuff from util

Posted by "Malinda Kaushalye Kapuruge (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2C-274?page=all ]

Malinda Kaushalye Kapuruge reassigned AXIS2C-274:
-------------------------------------------------

    Assignee: Malinda Kaushalye Kapuruge

> rampart_generate_time should use date time stuff from util
> ----------------------------------------------------------
>
>                 Key: AXIS2C-274
>                 URL: http://issues.apache.org/jira/browse/AXIS2C-274
>             Project: Axis2-C
>          Issue Type: Improvement
>          Components: util
>    Affects Versions: Current (Nightly)
>            Reporter: James Clark
>         Assigned To: Malinda Kaushalye Kapuruge
>            Priority: Minor
>
> rampart_generate_time looks suspicious to me.  It shouldn't be calling system functions directly.  This sort of thing belongs in util.  Why isn't it using axis2_date_time_*?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (AXIS2C-274) rampart_generate_time should use date time stuff from util

Posted by "Malinda Kaushalye Kapuruge (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2C-274?page=comments#action_12433779 ] 
            
Malinda Kaushalye Kapuruge commented on AXIS2C-274:
---------------------------------------------------

TRUE. It's much better to use the axis2_date_time_* for this purpose. But when I develop timestamps there was no such support for the date time serialization in the axis2 util. Hence I had to write my own code to generate the time. But thanks for raising the issue.
Doing this, we have to introduce a new create function to the axis2_data_time_* to create a time which has a different value to the current time. The existing function always generate  axis2_date_time based on the  current time. I'd prefer to have a  function like 

AXIS2_EXTERN axis2_date_time_t * AXIS2_CALL
axis2_date_time_create_with_offset(const axis2_env_t *env, int offset);

and then the existing function axis2_date_time_create() can call this function with offset=0

> rampart_generate_time should use date time stuff from util
> ----------------------------------------------------------
>
>                 Key: AXIS2C-274
>                 URL: http://issues.apache.org/jira/browse/AXIS2C-274
>             Project: Axis2-C
>          Issue Type: Improvement
>          Components: util
>    Affects Versions: Current (Nightly)
>            Reporter: James Clark
>         Assigned To: Malinda Kaushalye Kapuruge
>            Priority: Minor
>
> rampart_generate_time looks suspicious to me.  It shouldn't be calling system functions directly.  This sort of thing belongs in util.  Why isn't it using axis2_date_time_*?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] Commented: (AXIS2C-274) rampart_generate_time should use date time stuff from util

Posted by "James Clark (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2C-274?page=comments#action_12433799 ] 
            
James Clark commented on AXIS2C-274:
------------------------------------

I think a cleaner solution in the long term would be an add_seconds method on date_time, implemented per

http://www.w3.org/TR/xmlschema-2/#adding-durations-to-dateTimes


> rampart_generate_time should use date time stuff from util
> ----------------------------------------------------------
>
>                 Key: AXIS2C-274
>                 URL: http://issues.apache.org/jira/browse/AXIS2C-274
>             Project: Axis2-C
>          Issue Type: Improvement
>          Components: util
>    Affects Versions: Current (Nightly)
>            Reporter: James Clark
>         Assigned To: Malinda Kaushalye Kapuruge
>            Priority: Minor
>             Fix For: Current (Nightly)
>
>
> rampart_generate_time looks suspicious to me.  It shouldn't be calling system functions directly.  This sort of thing belongs in util.  Why isn't it using axis2_date_time_*?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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