BenoitTalbot / bungeni-portal

Automatically exported from code.google.com/p/bungeni-portal
0 stars 0 forks source link

Troubles acessing the exist graphical interface (ancient portal) from november 2013 in ubuntu 12.04 at least... #793

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Acess the exis graphical interface in november 2013
2. Go to the Business section

What is the expected output? What do you see instead?
Expected output is the business area with all the agenda items and documents. I 
get an error.

Please use labels and text to provide additional information.

Original issue reported on code.google.com by toolzi...@gmail.com on 9 Jan 2014 at 3:41

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Xquery Instruction current-date() was not being deterministic in its behaviour.

For some dates the format returned was:
2013-05-02+00:01
and for some other dates the format returned was: 
2013-05-02z

Since the developers were using sub-string-before() function using the '+' as 
the delimiter, when the returned date terminated in z, the system produced 
errors, by not being able to execute the function start-end-of-week().

I've replaced all current-date() for current-dateTime(), and optimized the code 
of start-end-of-week() function, replacing the switch case instruction.

Original comment by toolzi...@gmail.com on 10 Jan 2014 at 11:33