This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 171459 - Generated deadline expr has wrong format
Summary: Generated deadline expr has wrong format
Status: CLOSED FIXED
Alias: None
Product: soa
Classification: Unclassified
Component: BPEL Mapper (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P3 blocker (vote)
Assignee: Vladimir Yaroslavskiy
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-04 10:12 UTC by Vitaly Bychkov
Modified: 2010-11-23 13:12 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot (14.12 KB, image/jpeg)
2010-11-16 14:54 UTC, senthilprabhu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vitaly Bychkov 2009-09-04 10:12:05 UTC
The generated by mapper deadline expression has wrong format:
e.g.:
1971-01-01T04:01:1.0 +03:00

Steps to reproduce: 
1. create Synchronous Sample and open Synchronous.bpel
2. add wait activity
3. from the property editor change "Alarm Type" onto "Until"
4. select the wait activity and switch to the bpel mapper
5. Choose from Bpel Mapper Palette "Date & Time"/Deadline Literal
6. press ok and join deadline literal with deadline node in the right tree
7. and go to the source, see deadline expression has format as described before


By the bpel spec; 8.3.2. Deadline Expressions:
These are expressions that conform to the XPath 1.0 Expr production where the evaluation
results in values that are of the XML Schema types dateTime or date.

Accordingly to the http://www.w3.org/TR/xmlschema-2/#dateTime, 
and http://www.w3.org/TR/xmlschema-2/#formatdetails
  the datetime format is:
 [-]CCYY-MM-DDThh:mm:ss[Z|(+|-)hh:mm]
more detailed description is here http://www.w3.org/TR/xmlschema-2/#dateTime-lexical-representation

i.e. white space before time zone is not allowed.

Another issue with date time format is: 
'Z' character is not allowed by "Deadline expression" editor but 
it's valid by the spec and has the same meaning as +00:00; -00:00





But the correct format from spec:
Here is white space which should be by the spec:
Comment 1 Vitaly Bychkov 2009-09-04 12:35:43 UTC
The last two strings in previous message is missprint.

One more usefull link regarding date formats with clear explanation: http://www.w3.org/TR/NOTE-datetime
Comment 2 Sergey Lunegov 2009-09-04 13:24:27 UTC
Nikita, please take a look.
Comment 3 Nikita Krjukov 2009-10-28 18:36:39 UTC
I've found that there isn't a blank space between time and time zone now. 
But there is another small problem - format of seconds requires 2 digits in integer part. But if you specify 1 seconds,
then it will be 1.0 instead of 01. I'm not sure it is a big problem. 

Regarding Z character support I reckon it has to be supported in the dialog with a check-box with label "UTC". 
It has to disable time zone selection if it checked. Also Z character has to be taken into consideration while parsing
sources.

I think the issue isn't so prioritized as P2 so I reduces it to P3.
I also reassign it to the code's owner
Comment 4 Vladimir Yaroslavskiy 2009-11-11 07:45:48 UTC
fixed in gfesbv22: a2cdf88c53a9
Comment 5 senthilprabhu 2010-11-16 14:54:06 UTC
Created attachment 103012 [details]
Screenshot
Comment 6 senthilprabhu 2010-11-16 14:55:57 UTC
Z character support is still not available in the dialog - see the attached screenshot.
Reopening this issue.
Comment 7 Vladimir Yaroslavskiy 2010-11-17 10:06:33 UTC
This issue is about wrong generation of deadline expression. The issue has been fixed, expression is generated correctly now. => FIXED.

For additional support of 'Z' in the dialog, please file new enhancement.
Comment 8 senthilprabhu 2010-11-23 13:12:29 UTC
The deadline expression is generated correctly now. This is verified in CAPS Milestone 5 build 20101103-1248. 
This issue can be closed.