Menu

#19 date/time problem in BaseDocumentProxy

domingo-1.5.1
open-fixed
7
2008-02-20
2008-01-30
Anonymous
No

When I call CalendarInterface.getCalendarEntry() I end up in an IndexOutOfBoundsException in line 418 of BaseDocumentProxy.

The code in line 417 and 418 looks like this:
if (text.indexOf('-') >= 0) { // we have a date/time range
GregorianDateTimeRange range = new GregorianDateTimeRange((Calendar) list.get(0), (Calendar) list.get(1));

Through debugging, I have discovered, that the value of the variable 'text' at this point is: '28-01-2008 08:10:00', so the the test in line 417 incorrectly determines that we have a date/time range, when in fact it is just a single date and time.

Kind regards,
Morten Hindsholm
morten@hindsholm.dk

Discussion

  • Nobody/Anonymous

    Stack trace

     
  • Kurt Riede

    Kurt Riede - 2008-01-30
    • labels: 1029222 --> proxy implementation
    • priority: 5 --> 7
    • status: open --> open-accepted
     
  • Kurt Riede

    Kurt Riede - 2008-01-30

    Logged In: YES
    user_id=484961
    Originator: NO

    ok, seemd to be a bug. Please help us to reproduce this behaviour:

    Which regional settings are you using?

    Best regards,
    Kurt

     
  • Kurt Riede

    Kurt Riede - 2008-01-30
    • milestone: 768238 --> domingo-1.5.1
     
  • Morten Hindsholm

    Logged In: YES
    user_id=114605
    Originator: NO

    It is a danish Lotus Notes installation, release 6.5.1.
    If you want me to check something, please let me know.
    I have the latest domingo checked out and built locally.

     
  • Kurt Riede

    Kurt Riede - 2008-02-20
    • status: open-accepted --> open-fixed
     
  • Kurt Riede

    Kurt Riede - 2008-02-20

    Logged In: YES
    user_id=484961
    Originator: NO

    A fix for this bug is now available in CVS HEAD.

     
  • Morten Hindsholm

    Logged In: YES
    user_id=114605
    Originator: NO

    Please forgive my ignorance, but I don't know how to check the regional settings in Lotus Notes...
    I know that it is a danish version with danish settings for date and time etc, but I suspect you are looking for more detailed information.
    Please let me know what you need and where I might find the information in my Notes client.

    Kind regards,

    /\/\orten

     
  • Morten Hindsholm

    Logged In: YES
    user_id=114605
    Originator: NO

    Hello again - I just saw your note about the fix in CVS HEAD.
    I will try that as soon as possible, which unfortunately won't be until next week.

    /\/\orten

     
  • Morten Hindsholm

    Logged In: YES
    user_id=114605
    Originator: NO

    Sorry about the delay.
    The bug has indeed been fixed - thank you!

     

Log in to post a comment.

MongoDB Logo MongoDB