[Zorba-coders] [Merge] lp:~zorba-coders/zorba/markos-scratch into lp:zorba

2012-02-14 Thread Markos Zaharioudakis
The proposal to merge lp:~zorba-coders/zorba/markos-scratch into lp:zorba has 
been updated.

Status: Needs review = Approved

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/92871
-- 
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/92871
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/markos-scratch into lp:zorba

2012-02-14 Thread Zorba Build Bot
Validation queue job markos-scratch-2012-02-14T09-40-07.043Z is finished. The 
final status was:

All tests succeeded!
-- 
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/92871
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 930573] Re: JSON module snelson parsing problem

2012-02-14 Thread William Candillon
** Changed in: zorba
   Status: In Progress = Fix Committed

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/930573

Title:
  JSON module snelson parsing problem

Status in Zorba - The XQuery Processor:
  Fix Committed

Bug description:
  The following query:

  import module namespace json = 
http://www.zorba-xquery.com/modules/converters/json;;
  import module namespace file = http://expath.org/ns/file;;

  let $tweet := file:read-text(tweet.json)
  let $tweet := json:parse($tweet)
  let $tweet := json:serialize($tweet)
  return
$tweet

  Where tweet.json (in attachement) comes from the twitter stream API,
  returns:

  JSON serialization error [zerr:ZJSE0005]: pair: illegal child element of 
array type; must be item 
  =
  json:serialize#1 http://www.zorba-xquery.com/modules/converters/json 
  /parse.xq at line 6 column 15

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/930573/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/markos-scratch into lp:zorba

2012-02-14 Thread Markos Zaharioudakis
Markos Zaharioudakis has proposed merging lp:~zorba-coders/zorba/markos-scratch 
into lp:zorba.

Requested reviews:
  Markos Zaharioudakis (markos-za)

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/92942

Fixed bug #872288
-- 
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/92942
Your team Zorba Coders is subscribed to branch lp:zorba.
=== modified file 'ChangeLog'
--- ChangeLog	2012-02-14 10:06:26 +
+++ ChangeLog	2012-02-14 10:30:19 +
@@ -18,6 +18,7 @@
   * Fixed bug #866423 (fn:empty and fn:exists iterators must reset their input in
 case of early-out)
   * Added index management function to the C++ api's StaticCollectionManager.
+  * Fixed bug #872288 (reset recursive flag during node rename)
   * Fixed bug #905041 (allow for the default element and function namespaces to be
 set multiple times via the c++ api).
   * Fixed bug #907872 (segfault when returning an input ItemSequence from an external function).

=== modified file 'src/store/naive/node_updates.cpp'
--- src/store/naive/node_updates.cpp	2012-02-02 14:42:18 +
+++ src/store/naive/node_updates.cpp	2012-02-14 10:30:19 +
@@ -229,12 +229,12 @@
   // Attach the attributes of this node to the new tree.
   AttributeNode* baseUriAttr = NULL;
   AttributeNode* hiddenBaseUriAttr = NULL;
-  ulong numAttrs = elem-numAttrs();
+  csize numAttrs = elem-numAttrs();
 
   InternalNode::iterator ite = elem-attrsBegin();
   InternalNode::iterator end = elem-attrsEnd();
 
-  for (ulong i = 0; ite != end; ++i, ++ite)
+  for (csize i = 0; ite != end; ++i, ++ite)
   {
 AttributeNode* attr = static_castAttributeNode*(*ite);
 
@@ -1361,6 +1361,24 @@
   {
 removeType(upd);
   }
+
+  if (theParent)
+  {
+XmlNode* ancestor = theParent;
+
+while (ancestor != NULL 
+   ancestor-getNodeKind() == store::StoreConsts::elementNode)
+{
+  ElementNode* elemAncestor = reinterpret_castElementNode*(ancestor);
+  if (elemAncestor-theName-equals(theName))
+  {
+elemAncestor-setRecursive();
+break;
+  }
+  
+  ancestor = ancestor-theParent;
+}
+  }
 }
 
 

=== added file 'test/rbkt/ExpQueryResults/zorba/updates/recursive.xml.res'
--- test/rbkt/ExpQueryResults/zorba/updates/recursive.xml.res	1970-01-01 00:00:00 +
+++ test/rbkt/ExpQueryResults/zorba/updates/recursive.xml.res	2012-02-14 10:30:19 +
@@ -0,0 +1,2 @@
+?xml version=1.0 encoding=UTF-8?
+firstaa//aa//first

=== added file 'test/rbkt/Queries/zorba/updates/recursive.xq'
--- test/rbkt/Queries/zorba/updates/recursive.xq	1970-01-01 00:00:00 +
+++ test/rbkt/Queries/zorba/updates/recursive.xq	2012-02-14 10:30:19 +
@@ -0,0 +1,11 @@
+variable $x:=ya//y;
+
+insert node b/ into $x/a;
+
+rename node $x/a/b as a;
+
+first
+{
+$x//a
+}
+/first

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/markos-scratch into lp:zorba

2012-02-14 Thread Markos Zaharioudakis
Review: Approve


-- 
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/92942
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/markos-scratch into lp:zorba

2012-02-14 Thread Markos Zaharioudakis
The proposal to merge lp:~zorba-coders/zorba/markos-scratch into lp:zorba has 
been updated.

Status: Needs review = Approved

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/92942
-- 
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/92942
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/markos-scratch into lp:zorba

2012-02-14 Thread Zorba Build Bot
Validation queue starting for merge proposal.
Log at: 
http://zorbatest.lambda.nu:8080/remotequeue/markos-scratch-2012-02-14T10-27-58.129Z/log.html
-- 
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/92942
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 919438] Re: assertion failed in var_expr::remove_set_expr during shutdown

2012-02-14 Thread Markos Zaharioudakis
Till, this is probably fixed by now. The bug was probably due to the
fact that theSetExprs data member of var_expr was not being serialized
at all. However, I cannot check if it is indeed fixed, because you did
not tell me how to reproduce the bug. So, I am assigning this bug to
you, so that you check it.

** Changed in: zorba
 Assignee: Markos Zaharioudakis (markos-za) = Till Westmann (tillw)

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/919438

Title:
  assertion failed in var_expr::remove_set_expr during shutdown

Status in Zorba - The XQuery Processor:
  New

Bug description:
  In an extended version of the plan_serializer unit test we run into
  this error:

  #0  0xb52ef0e5 in __cxa_throw () from /usr/lib/i386-linux-gnu/libstdc++.so.6
  #1  0xb7144a0f in zorba::assertion_failed (condition=0xb79f3632 found, 
file=0xb79f35c0 
/home/tillw/code/zorba/zorba/src/compiler/expression/var_expr.cpp, line=260)
  at /home/tillw/code/zorba/zorba/src/diagnostics/assert.cpp:66
  #2  0xb6fc3538 in zorba::var_expr::remove_set_expr (this=0x836abd0, 
e=0x836ad50) at 
/home/tillw/code/zorba/zorba/src/compiler/expression/var_expr.cpp:260
  #3  0xb6fde15b in zorba::var_set_expr::~var_set_expr (this=0x836ad50, 
__in_chrg=value optimized out) at 
/home/tillw/code/zorba/zorba/src/compiler/expression/script_exprs.cpp:346
  #4  0xb6fde1fb in zorba::var_set_expr::~var_set_expr (this=0x836ad50, 
__in_chrg=value optimized out) at 
/home/tillw/code/zorba/zorba/src/compiler/expression/script_exprs.cpp:347
  #5  0xb6d9758c in zorba::SimpleRCObject::free (this=0x836ad50) at 
/home/tillw/code/zorba/zorba/src/zorbatypes/rchandle.h:124
  #6  0xb78b2821 in zorba::RCObject::removeReference (this=0x836ad50, 
sharedCounter=0x0, lock=0x0) at 
/home/tillw/code/zorba/zorba/src/zorbatypes/rchandle.cpp:120
  #7  0xb6e6c125 in zorba::rchandlezorba::expr::~rchandle (this=0x8376cf8, 
__in_chrg=value optimized out) at 
/home/tillw/code/zorba/zorba/src/zorbatypes/rchandle.h:169
  #8  0xb7339240 in zorba::user_function::~user_function (this=0x8376ca8, 
__in_chrg=value optimized out) at 
/home/tillw/code/zorba/zorba/src/functions/udf.cpp:89
  #9  0xb7339321 in zorba::user_function::~user_function (this=0x8376ca8, 
__in_chrg=value optimized out) at 
/home/tillw/code/zorba/zorba/src/functions/udf.cpp:91
  #10 0xb6d9758c in zorba::SimpleRCObject::free (this=0x8376ca8) at 
/home/tillw/code/zorba/zorba/src/zorbatypes/rchandle.h:124
  #11 0xb78b2821 in zorba::RCObject::removeReference (this=0x8376ca8, 
sharedCounter=0x0, lock=0x0) at 
/home/tillw/code/zorba/zorba/src/zorbatypes/rchandle.cpp:120
  #12 0xb6ee620b in zorba::rchandlezorba::function::~rchandle 
(this=0x837663c, __in_chrg=value optimized out) at 
/home/tillw/code/zorba/zorba/src/zorbatypes/rchandle.h:169

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/919438/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/markos-scratch into lp:zorba

2012-02-14 Thread Zorba Build Bot
Validation queue job markos-scratch-2012-02-14T10-27-58.129Z is finished. The 
final status was:

All tests succeeded!
-- 
https://code.launchpad.net/~zorba-coders/zorba/markos-scratch/+merge/92942
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~danielturcanu/zorba/csv_conv_module into lp:zorba/data-converters-module

2012-02-14 Thread Zorba Build Bot
Validation queue starting for merge proposal.
Log at: 
http://zorbatest.lambda.nu:8080/remotequeue/csv_conv_module-2012-02-14T13-36-36.362Z/log.html
-- 
https://code.launchpad.net/~danielturcanu/zorba/csv_conv_module/+merge/92072
Your team Zorba Coders is subscribed to branch lp:zorba/data-converters-module.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~danielturcanu/zorba/csv_conv_module into lp:zorba/data-converters-module

2012-02-14 Thread Sorin Marian Nasoi
The proposal to merge lp:~danielturcanu/zorba/csv_conv_module into 
lp:zorba/data-converters-module has been updated.

Status: Needs review = Approved

For more details, see:
https://code.launchpad.net/~danielturcanu/zorba/csv_conv_module/+merge/92072
-- 
https://code.launchpad.net/~danielturcanu/zorba/csv_conv_module/+merge/92072
Your team Zorba Coders is subscribed to branch lp:zorba/data-converters-module.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~danielturcanu/zorba/csv_conv_module into lp:zorba/data-converters-module

2012-02-14 Thread Zorba Build Bot
Validation queue job csv_conv_module-2012-02-14T13-36-36.362Z is finished. The 
final status was:

All tests succeeded!
-- 
https://code.launchpad.net/~danielturcanu/zorba/csv_conv_module/+merge/92072
Your team Zorba Coders is subscribed to branch lp:zorba/data-converters-module.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~danielturcanu/zorba/csv_conv_module into lp:zorba/data-converters-module

2012-02-14 Thread noreply
The proposal to merge lp:~danielturcanu/zorba/csv_conv_module into 
lp:zorba/data-converters-module has been updated.

Status: Approved = Merged

For more details, see:
https://code.launchpad.net/~danielturcanu/zorba/csv_conv_module/+merge/92072
-- 
https://code.launchpad.net/~danielturcanu/zorba/csv_conv_module/+merge/92072
Your team Zorba Coders is subscribed to branch lp:zorba/data-converters-module.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/feature-json_parser into lp:zorba

2012-02-14 Thread William Candillon
I approve the fix for bug #930573 and opened #932186 which depends on this 
merge proposal.
-- 
https://code.launchpad.net/~zorba-coders/zorba/feature-json_parser/+merge/92900
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 867199] Re: Segmentation fault with function item which accesses focus

2012-02-14 Thread Matthias Brantner
Assigning to Nicolae because he is currently working on the
implementation of higher-order functions.

** Changed in: zorba
 Assignee: Markos Zaharioudakis (markos-za) = Nicolae Brinza (nbrinza)

** Changed in: zorba
Milestone: None = 2.2

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/867199

Title:
  Segmentation fault with function item which accesses focus

Status in Zorba - The XQuery Processor:
  Unknown

Bug description:
  This expression causes a segmentation fault.
  declare namespace o = http://www.zorba-xquery.com/options/features;;
  declare option o:enable hof;

  let $f := function() { . } 
  return $f()

  ?xml version=1.0 encoding=UTF-8?
  Segmentation fault

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/867199/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 932266] [NEW] HOF: reporting wrong error

2012-02-14 Thread Sorin Marian Nasoi
Public bug reported:

query 'fn-concat-18' from FOTS, meaning:

xquery version '3.0';
declare namespace o = 'http://www.zorba-xquery.com/options/features';
declare option o:enable 'hof';
fn:concat(abc,abc, fn:concat#3)

reports 
type error [err:FOTY0013]: concat: argument to fn:data() is function item

The expected error in the FOTS test is 
http://www.w3.org/TR/xquery-30/#ERRXPTY0004

Assigned to Nicolai because AFAIK he is working on HOF completion:
please reassign accordingly.

** Affects: zorba
 Importance: Medium
 Assignee: Nicolae Brinza (nbrinza)
 Status: New

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/932266

Title:
  HOF: reporting wrong error

Status in Zorba - The XQuery Processor:
  New

Bug description:
  query 'fn-concat-18' from FOTS, meaning:

  xquery version '3.0';
  declare namespace o = 'http://www.zorba-xquery.com/options/features';
  declare option o:enable 'hof';
  fn:concat(abc,abc, fn:concat#3)

  reports 
  type error [err:FOTY0013]: concat: argument to fn:data() is function item

  The expected error in the FOTS test is 
  http://www.w3.org/TR/xquery-30/#ERRXPTY0004

  Assigned to Nicolai because AFAIK he is working on HOF completion:
  please reassign accordingly.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/932266/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 932314] [NEW] fn:distinct-values bug

2012-02-14 Thread Sorin Marian Nasoi
Public bug reported:

test 'fn-distinct-values-2' from FOTS:

fn:distinct-values((1 to 300, 100 to 400, 29, 145, 20 to 50, for $x in
(30 to 40) return xs:string($x), foo, bar))

is failing with error:
type error [err:XPTY0004]: xs:integer: invalid type: can not compare for 
equality to type xs:string; raised at 
/home/spungi/work/zorba/repo/feature_fots/src/runtime/booleans/BooleanImpl.cpp:874

This is wrong behavior according to the
http://www.w3.org/TR/xpath-functions-30/#func-distinct-values

** Affects: zorba
 Importance: Medium
 Status: New

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/932314

Title:
  fn:distinct-values bug

Status in Zorba - The XQuery Processor:
  New

Bug description:
  test 'fn-distinct-values-2' from FOTS:

  fn:distinct-values((1 to 300, 100 to 400, 29, 145, 20 to 50, for $x in
  (30 to 40) return xs:string($x), foo, bar))

  is failing with error:
  type error [err:XPTY0004]: xs:integer: invalid type: can not compare for 
equality to type xs:string; raised at 
/home/spungi/work/zorba/repo/feature_fots/src/runtime/booleans/BooleanImpl.cpp:874

  This is wrong behavior according to the
  http://www.w3.org/TR/xpath-functions-30/#func-distinct-values

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/932314/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/bug-919438 into lp:zorba

2012-02-14 Thread Till Westmann
Till Westmann has proposed merging lp:~zorba-coders/zorba/bug-919438 into 
lp:zorba.

Requested reviews:
  Matthias Brantner (matthias-brantner)
  Till Westmann (tillw)
Related bugs:
  Bug #919438 in Zorba: assertion failed in var_expr::remove_set_expr during 
shutdown
  https://bugs.launchpad.net/zorba/+bug/919438

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/bug-919438/+merge/93093

added a new unit test for the plan serializer
-- 
https://code.launchpad.net/~zorba-coders/zorba/bug-919438/+merge/93093
Your team Zorba Coders is subscribed to branch lp:zorba.
=== modified file 'test/unit/CMakeLists.txt'
--- test/unit/CMakeLists.txt	2012-02-02 09:56:52 +
+++ test/unit/CMakeLists.txt	2012-02-14 22:20:26 +
@@ -14,6 +14,7 @@
 # create the testing file and list of tests
 
 CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/guestbook_main.xq ${CMAKE_CURRENT_BINARY_DIR}/guestbook_main.xq)
+CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/mini_http.xq ${CMAKE_CURRENT_BINARY_DIR}/mini_http.xq)
 CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/guestbook.xq ${CMAKE_CURRENT_BINARY_DIR}/guestbook.xq)
 
 #belongs to test cxx_api_changes.cpp

=== added file 'test/unit/mini_http.xq'
--- test/unit/mini_http.xq	1970-01-01 00:00:00 +
+++ test/unit/mini_http.xq	2012-02-14 22:20:26 +
@@ -0,0 +1,40 @@
+declare namespace http = http://www.28msec.com/modules/http;;
+
+declare namespace ann = http://www.zorba-xquery.com/annotations;;
+
+declare variable $http:var := ;
+
+declare %ann:sequential function http:set-header(
+$name as xs:string,
+$value as xs:string)
+as xs:string?
+{
+  let $lc-name := fn:lower-case($name)
+  return
+if ($lc-name eq status or
+$lc-name eq set-cookie or
+$lc-name eq content-type)
+then
+  fn:error(
+xs:QName(http:invalid-header-name),
+concat($name, : invalid header name)
+  )
+else
+  http:set-header-impl($name, $value)
+};
+
+(:~
+ : pSet a HTTP header in the response./p
+ :
+ : p
+ :`
+ : @return The empty-sequence is returned.
+ :)
+declare %fn:private %ann:sequential function http:set-header-impl(
+$name as xs:string,
+$value as xs:string)
+as xs:string? { 
+  $http:var := val; 
+};
+
+http:set-header(foo, bar)

=== modified file 'test/unit/plan_serializer.cpp'
--- test/unit/plan_serializer.cpp	2011-06-14 17:26:33 +
+++ test/unit/plan_serializer.cpp	2012-02-14 22:20:26 +
@@ -26,35 +26,59 @@
 
 using namespace zorba;
 
-
-int
-plan_serializer(int argc, char* argv[]) 
+bool
+save_and_load(Zorba* aZorba, const char* aQueryFile)
 {
-  void* lStore = zorba::StoreManager::getStore();
-  Zorba* lZorba = Zorba::getInstance(lStore);
-
   try {
- std::ifstream lIn(guestbook_main.xq);
+ std::ifstream lIn(aQueryFile);
  std::ostringstream lOut;
 
  {
-   StaticContext_t lSctx = lZorba-createStaticContext();
-
-   XQuery_t lQuery = lZorba-compileQuery(lIn, lSctx);
+   StaticContext_t lSctx = aZorba-createStaticContext();
+   XQuery_t lQuery = aZorba-compileQuery(lIn, lSctx);
lQuery-saveExecutionPlan(lOut, ZORBA_USE_BINARY_ARCHIVE, SAVE_UNUSED_FUNCTIONS);
  }
 
-
  {
std::istringstream lIn(lOut.str());
-   XQuery_t lQuery = lZorba-createQuery();
+   XQuery_t lQuery = aZorba-createQuery();
lQuery-loadExecutionPlan(lIn);
std::cout  lQuery  std::endl;
  }
+ return true;
   } catch (ZorbaException e) {
 std::cerr  e  std::endl;
+return false;
+  }
+}
+
+bool
+plan_serializer1(Zorba* aZorba)
+{
+  return save_and_load(aZorba, guestbook_main.xq);
+}
+
+bool
+plan_serializer2(Zorba* aZorba)
+{
+  return save_and_load(aZorba, mini_http.xq);
+}
+
+int
+plan_serializer(int argc, char* argv[]) 
+{
+  void* lStore = zorba::StoreManager::getStore();
+  Zorba* lZorba = Zorba::getInstance(lStore);
+
+  std::cout  executing test 1  std::endl;
+  if (!plan_serializer1(lZorba))
 return 1;
-  }
+  std::cout  std::endl;
+
+  std::cout  executing test 2  std::endl;
+  if (!plan_serializer2(lZorba))
+return 2;
+  std::cout  std::endl;
 
   lZorba-shutdown();
   zorba::StoreManager::shutdownStore(lStore);

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/bug-919438 into lp:zorba

2012-02-14 Thread Till Westmann
Review: Approve


-- 
https://code.launchpad.net/~zorba-coders/zorba/bug-919438/+merge/93093
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/bug-919438 into lp:zorba

2012-02-14 Thread Till Westmann
The proposal to merge lp:~zorba-coders/zorba/bug-919438 into lp:zorba has been 
updated.

Status: Needs review = Approved

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/bug-919438/+merge/93093
-- 
https://code.launchpad.net/~zorba-coders/zorba/bug-919438/+merge/93093
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/bug-919438 into lp:zorba

2012-02-14 Thread Zorba Build Bot
Validation queue starting for merge proposal.
Log at: 
http://zorbatest.lambda.nu:8080/remotequeue/bug-919438-2012-02-14T22-22-55.863Z/log.html
-- 
https://code.launchpad.net/~zorba-coders/zorba/bug-919438/+merge/93093
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/bug-919438 into lp:zorba

2012-02-14 Thread Matthias Brantner
Review: Approve


-- 
https://code.launchpad.net/~zorba-coders/zorba/bug-919438/+merge/93093
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 919438] Re: assertion failed in var_expr::remove_set_expr during shutdown

2012-02-14 Thread Till Westmann
To test it you could have used 
ctest -R plan_serializer
on the related branch. 

However, I've merged the trunk into the branch and the problem is indeed fixed.
I'll propose the branch for merging.

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/919438

Title:
  assertion failed in var_expr::remove_set_expr during shutdown

Status in Zorba - The XQuery Processor:
  New

Bug description:
  In an extended version of the plan_serializer unit test we run into
  this error:

  #0  0xb52ef0e5 in __cxa_throw () from /usr/lib/i386-linux-gnu/libstdc++.so.6
  #1  0xb7144a0f in zorba::assertion_failed (condition=0xb79f3632 found, 
file=0xb79f35c0 
/home/tillw/code/zorba/zorba/src/compiler/expression/var_expr.cpp, line=260)
  at /home/tillw/code/zorba/zorba/src/diagnostics/assert.cpp:66
  #2  0xb6fc3538 in zorba::var_expr::remove_set_expr (this=0x836abd0, 
e=0x836ad50) at 
/home/tillw/code/zorba/zorba/src/compiler/expression/var_expr.cpp:260
  #3  0xb6fde15b in zorba::var_set_expr::~var_set_expr (this=0x836ad50, 
__in_chrg=value optimized out) at 
/home/tillw/code/zorba/zorba/src/compiler/expression/script_exprs.cpp:346
  #4  0xb6fde1fb in zorba::var_set_expr::~var_set_expr (this=0x836ad50, 
__in_chrg=value optimized out) at 
/home/tillw/code/zorba/zorba/src/compiler/expression/script_exprs.cpp:347
  #5  0xb6d9758c in zorba::SimpleRCObject::free (this=0x836ad50) at 
/home/tillw/code/zorba/zorba/src/zorbatypes/rchandle.h:124
  #6  0xb78b2821 in zorba::RCObject::removeReference (this=0x836ad50, 
sharedCounter=0x0, lock=0x0) at 
/home/tillw/code/zorba/zorba/src/zorbatypes/rchandle.cpp:120
  #7  0xb6e6c125 in zorba::rchandlezorba::expr::~rchandle (this=0x8376cf8, 
__in_chrg=value optimized out) at 
/home/tillw/code/zorba/zorba/src/zorbatypes/rchandle.h:169
  #8  0xb7339240 in zorba::user_function::~user_function (this=0x8376ca8, 
__in_chrg=value optimized out) at 
/home/tillw/code/zorba/zorba/src/functions/udf.cpp:89
  #9  0xb7339321 in zorba::user_function::~user_function (this=0x8376ca8, 
__in_chrg=value optimized out) at 
/home/tillw/code/zorba/zorba/src/functions/udf.cpp:91
  #10 0xb6d9758c in zorba::SimpleRCObject::free (this=0x8376ca8) at 
/home/tillw/code/zorba/zorba/src/zorbatypes/rchandle.h:124
  #11 0xb78b2821 in zorba::RCObject::removeReference (this=0x8376ca8, 
sharedCounter=0x0, lock=0x0) at 
/home/tillw/code/zorba/zorba/src/zorbatypes/rchandle.cpp:120
  #12 0xb6ee620b in zorba::rchandlezorba::function::~rchandle 
(this=0x837663c, __in_chrg=value optimized out) at 
/home/tillw/code/zorba/zorba/src/zorbatypes/rchandle.h:169

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/919438/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/bug-919438 into lp:zorba

2012-02-14 Thread Zorba Build Bot
Validation queue job bug-919438-2012-02-14T22-22-55.863Z is finished. The final 
status was:

All tests succeeded!
-- 
https://code.launchpad.net/~zorba-coders/zorba/bug-919438/+merge/93093
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/bug-919438 into lp:zorba

2012-02-14 Thread noreply
The proposal to merge lp:~zorba-coders/zorba/bug-919438 into lp:zorba has been 
updated.

Status: Approved = Merged

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/bug-919438/+merge/93093
-- 
https://code.launchpad.net/~zorba-coders/zorba/bug-919438/+merge/93093
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/XUDY00021 into lp:zorba

2012-02-14 Thread Matthias Brantner
Matthias Brantner has proposed merging lp:~zorba-coders/zorba/XUDY00021 into 
lp:zorba.

Requested reviews:
  Matthias Brantner (matthias-brantner)
  Markos Zaharioudakis (markos-za)

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/XUDY00021/+merge/93099

added error message for XUDY00021 in apply iterator. The error message was lost 
during the work on generating the dictionary from XML files.
-- 
https://code.launchpad.net/~zorba-coders/zorba/XUDY00021/+merge/93099
Your team Zorba Coders is subscribed to branch lp:zorba.
=== modified file 'modules/com/zorba-xquery/www/modules/CMakeLists.txt'
--- modules/com/zorba-xquery/www/modules/CMakeLists.txt	2012-02-05 12:31:20 +
+++ modules/com/zorba-xquery/www/modules/CMakeLists.txt	2012-02-14 22:53:18 +
@@ -63,6 +63,8 @@
   URI http://www.zorba-xquery.com/modules/schema;)
 DECLARE_ZORBA_MODULE(FILE string.xq VERSION 2.1
   URI http://www.zorba-xquery.com/modules/string;)
+DECLARE_ZORBA_MODULE(FILE uri.xq VERSION 1.0
+  URI http://www.zorba-xquery.com/modules/uri;)
 DECLARE_ZORBA_MODULE(FILE xml.xq VERSION 2.0
   URI http://www.zorba-xquery.com/modules/xml;)
 DECLARE_ZORBA_MODULE(FILE xqdoc.xq VERSION 2.0

=== added file 'modules/com/zorba-xquery/www/modules/uri.xq'
--- modules/com/zorba-xquery/www/modules/uri.xq	1970-01-01 00:00:00 +
+++ modules/com/zorba-xquery/www/modules/uri.xq	2012-02-14 22:53:18 +
@@ -0,0 +1,90 @@
+xquery version 1.0;
+
+(:
+ : Copyright 2006-2012 The FLWOR Foundation.
+ :
+ : Licensed under the Apache License, Version 2.0 (the License);
+ : you may not use this file except in compliance with the License.
+ : You may obtain a copy of the License at
+ :
+ : http://www.apache.org/licenses/LICENSE-2.0
+ :
+ : Unless required by applicable law or agreed to in writing, software
+ : distributed under the License is distributed on an AS IS BASIS,
+ : WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ : See the License for the specific language governing permissions and
+ : limitations under the License.
+:)
+
+(:~
+ : This module provides string related functions.
+ :
+ : @author Matthias Brantner
+ : @project XDM/atomic
+ :
+ :)
+module namespace uri = http://www.zorba-xquery.com/modules/uri;;
+declare namespace ver = http://www.zorba-xquery.com/options/versioning;;
+declare option ver:module-version 1.0;
+
+
+(:~
+ : Percent-decodes (aka URL decoding) the given string.
+ :
+ : All percent encoded octets will be translated into their
+ : decoded UTF-8 representation.
+ :
+ : @param $s the string to decode
+ :
+ : @return the percent decoded string
+ :)
+declare function uri:decode($u as xs:string) as xs:string
+{
+  uri:decode($u, fn:false())
+};
+
+(:~
+ : Percent-decodes (aka URL decoding) the given string.
+ :
+ : All percent encoded octets will be translated into their
+ : decoded UTF-8 representation.
+ :
+ : If $decode-plus is specified all occurrences of the char '+'
+ : will be replaced with a space ' ' before the percent decoding
+ : happens.
+ :
+ : @param $s the string to decode
+ : @param $decode-plus whether '+' chars will be replaced with spaces
+ :
+ : @return the percent decoded string
+ :)
+declare function uri:decode(
+  $u as xs:string,
+  $decode-plus as xs:boolean) as xs:string
+{
+  uri:decode($u, $decode-plus, UTF-8)
+};
+
+(:~
+ : Percent-decodes (aka URL decoding) the given string.
+ :
+ : All percent encoded octets will be translated into their
+ : decoded UTF-8 representation.
+ :
+ : If $decode-plus is specified all occurrences of the char '+'
+ : will be replaced with a space ' ' before the percent decoding
+ : happens.
+ :
+ : The $charset parameter specifies the source charset after precent
+ : decoding. It is used to convert the decoded string into UTF-8.
+ :
+ : @param $s the string to decode
+ : @param $decode-plus whether '+' chars will be replaced with spaces
+ : @param $charset the source charset of the string after percent decoding
+ :
+ : @return the percent decoded string
+ :)
+declare function uri:decode(
+  $s as xs:string,
+  $decode-plus as xs:boolean,
+  $charset as xs:string) as xs:string external;

=== modified file 'src/context/static_context.cpp'
--- src/context/static_context.cpp	2012-02-05 12:31:20 +
+++ src/context/static_context.cpp	2012-02-14 22:53:18 +
@@ -361,6 +361,10 @@
 http://www.zorba-xquery.com/modules/string;;
 
 const char*
+static_context::ZORBA_URI_FN_NS = 
+http://www.zorba-xquery.com/modules/uri;;
+
+const char*
 static_context::ZORBA_FETCH_FN_NS = 
 http://www.zorba-xquery.com/modules/fetch;;
 
@@ -436,6 +440,7 @@
 ns == ZORBA_REFLECTION_FN_NS ||
 ns == ZORBA_SCRIPTING_FN_NS ||
 ns == ZORBA_STRING_FN_NS ||
+ns == ZORBA_URI_FN_NS ||
 ns == ZORBA_FETCH_FN_NS ||
 ns == ZORBA_NODE_FN_NS ||
 ns == ZORBA_XML_FN_NS);
@@ -482,6 +487,7 @@
   {
 return (ns == ZORBA_MATH_FN_NS ||
 ns == ZORBA_INTROSP_SCTX_FN_NS ||
+

Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/XUDY00021 into lp:zorba

2012-02-14 Thread Matthias Brantner
Review: Approve


-- 
https://code.launchpad.net/~zorba-coders/zorba/XUDY00021/+merge/93099
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/XUDY00021 into lp:zorba

2012-02-14 Thread Matthias Brantner
The proposal to merge lp:~zorba-coders/zorba/XUDY00021 into lp:zorba has been 
updated.

Status: Needs review = Approved

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/XUDY00021/+merge/93099
-- 
https://code.launchpad.net/~zorba-coders/zorba/XUDY00021/+merge/93099
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/XUDY00021 into lp:zorba

2012-02-14 Thread Zorba Build Bot
Validation queue starting for merge proposal.
Log at: 
http://zorbatest.lambda.nu:8080/remotequeue/XUDY00021-2012-02-14T22-54-59.23Z/log.html
-- 
https://code.launchpad.net/~zorba-coders/zorba/XUDY00021/+merge/93099
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/XUDY00021 into lp:zorba

2012-02-14 Thread Matthias Brantner
The proposal to merge lp:~zorba-coders/zorba/XUDY00021 into lp:zorba has been 
updated.

Commit Message changed to:

added error message for XUDY00021 in apply iterator

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/XUDY00021/+merge/93100
-- 
https://code.launchpad.net/~zorba-coders/zorba/XUDY00021/+merge/93100
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/XUDY00021 into lp:zorba

2012-02-14 Thread Matthias Brantner
The proposal to merge lp:~zorba-coders/zorba/XUDY00021 into lp:zorba has been 
updated.

Status: Needs review = Approved

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/XUDY00021/+merge/93100
-- 
https://code.launchpad.net/~zorba-coders/zorba/XUDY00021/+merge/93100
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/XUDY00021 into lp:zorba

2012-02-14 Thread Matthias Brantner
Review: Approve


-- 
https://code.launchpad.net/~zorba-coders/zorba/XUDY00021/+merge/93100
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/XUDY00021 into lp:zorba

2012-02-14 Thread Zorba Build Bot
Validation queue job XUDY00021-2012-02-14T22-54-59.23Z is finished. The final 
status was:

All tests succeeded!
-- 
https://code.launchpad.net/~zorba-coders/zorba/XUDY00021/+merge/93100
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/XUDY00021 into lp:zorba

2012-02-14 Thread Zorba Build Bot
Validation queue starting for merge proposal.
Log at: 
http://zorbatest.lambda.nu:8080/remotequeue/XUDY00021-2012-02-14T23-26-10.892Z/log.html
-- 
https://code.launchpad.net/~zorba-coders/zorba/XUDY00021/+merge/93100
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/XUDY00021 into lp:zorba

2012-02-14 Thread Zorba Build Bot
Validation queue job XUDY00021-2012-02-14T23-26-10.892Z is finished. The final 
status was:

All tests succeeded!
-- 
https://code.launchpad.net/~zorba-coders/zorba/XUDY00021/+merge/93100
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/XUDY00021 into lp:zorba

2012-02-14 Thread Zorba Build Bot
Voting does not meet specified criteria. Required: Approve  1, Disapprove  1. 
Got: 1 Approve, 2 Pending.
-- 
https://code.launchpad.net/~zorba-coders/zorba/XUDY00021/+merge/93100
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/XUDY00021 into lp:zorba

2012-02-14 Thread Zorba Build Bot
The proposal to merge lp:~zorba-coders/zorba/XUDY00021 into lp:zorba has been 
updated.

Status: Approved = Needs review

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/XUDY00021/+merge/93100
-- 
https://code.launchpad.net/~zorba-coders/zorba/XUDY00021/+merge/93100
Your team Zorba Coders is subscribed to branch lp:zorba.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 882320] Re: functx namespace is wrong, it should not end with slash '/'

2012-02-14 Thread Chris Hillery
** Changed in: zorba
   Status: New = Triaged

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/882320

Title:
  functx namespace is wrong, it should not end with slash '/'

Status in Zorba - The XQuery Processor:
  Triaged

Bug description:
  Out current functx module is defined with an URI that ends with slash
  '/' : http://www.zorba-
  xquery.com/site2/doc/latest/zorba/xqdoc/xhtml/www.functx.com_index.html

  But the Functx website defines it with a slightly diferent URI:
  http://www.xqueryfunctions.com/xq/download.html

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/882320/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 923015] Re: clone() not implemented for full-text expressions

2012-02-14 Thread Paul J. Lucas
** Changed in: zorba
   Status: In Progress = Fix Committed

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/923015

Title:
  clone() not implemented for full-text expressions

Status in Zorba - The XQuery Processor:
  Fix Committed

Bug description:
  The following query:
   declare function local:foo(){
 let $x := msgbreakfast of champions/msg
 return $x contains text meal
   using thesaurus at /Users/wcandillon/demo/wordnet-en.zth
   relationship narrower term
   };  

   local:foo()

  Returns:
  Zorba error [zerr:ZXQP0003]: internal error: clone() not implemented for 
expression; raised at 
/Users/wcandillon/28msec/zorba/sandbox/src/compiler/rewriter/rules/fold_rules.cpp:1106

  However the following query:
   let $x := msgbreakfast of champions/msg
 return $x contains text meal
   using thesaurus at /Users/wcandillon/demo/wordnet-en.zth
   relationship narrower term

  Works fine.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/923015/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 932186] Re: Encoding problem with JSON module

2012-02-14 Thread Paul J. Lucas
This appears to be a problem with the serializer -- which is NOT my
code, hence not my bug, hence not related to this branch.

** Changed in: zorba
   Status: New = Triaged

** Changed in: zorba
 Assignee: Paul J. Lucas (paul-lucas) = William Candillon (wcandillon)

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/932186

Title:
  Encoding problem with JSON module

Status in Zorba - The XQuery Processor:
  Triaged

Bug description:
  Running the query attached using the following command line:
  ~/28msec/zorba/build/bin/zorba -q test.xq -f

  Results in the following error:
  dynamic error [err:FOCH0001]: 55357: invalid code point 

  However the following command:
  ~/28msec/zorba/build/bin/zorba -q test.xq -f --serialize-text
  Works fine.

  Removing the json:serialize() function call in the query prevents the
  error to happen.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/932186/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 928631] Re: wrong static context in built-in function in full-text module

2012-02-14 Thread Paul J. Lucas
This still hasn't been fixed.

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/928631

Title:
  wrong static context in built-in function in full-text module

Status in Zorba - The XQuery Processor:
  In Progress

Bug description:
  The error isn't raised if the schema is actually imported in the module that
  invokes the function which does the validation. This probably means that
  the static context of the function is the static context resulting from 
compiling
  the importing module (instead the static context of the full-text module 
itself).

  Alternatively, the in-scope element declarations could also become part
  of all the static contexts of the query. I think we have had this discussion
  a couple of times and I keep forgetting what we decided.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/928631/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 932186] Re: Encoding problem with JSON module

2012-02-14 Thread Paul J. Lucas
Actually, it's not a problem with the serializer at all. Code-point
55357 is illegal in XML 1.0 which is that Zorba serializes as by
default. You need to specify that your query is XML 1.1.

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/932186

Title:
  Encoding problem with JSON module

Status in Zorba - The XQuery Processor:
  Triaged

Bug description:
  Running the query attached using the following command line:
  ~/28msec/zorba/build/bin/zorba -q test.xq -f

  Results in the following error:
  dynamic error [err:FOCH0001]: 55357: invalid code point 

  However the following command:
  ~/28msec/zorba/build/bin/zorba -q test.xq -f --serialize-text
  Works fine.

  Removing the json:serialize() function call in the query prevents the
  error to happen.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/932186/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 921458] Re: file:read-text-lines() blocking

2012-02-14 Thread Matthias Brantner
** Changed in: zorba
 Assignee: Matthias Brantner (matthias-brantner) = William Candillon 
(wcandillon)

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/921458

Title:
  file:read-text-lines() blocking

Status in Zorba - The XQuery Processor:
  New

Bug description:
  I wrote the following query:
  import module namespace file =http://expath.org/ns/file;;

  for $line at $i in file:read-text-lines(doc.xml)
  return
    if($i lt 1104869) then () else concat($line, 
  )

  Where doc.xml is a large document.
  The result of the query seems to never end and its memory footprint is huge.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/921458/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 925133] Re: replace string restriction with xs:boolean in csv-options.xsd

2012-02-14 Thread Matthias Brantner
** Changed in: zorba
   Status: New = Fix Committed

** Changed in: zorba
Milestone: None = 2.2

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/925133

Title:
  replace string restriction with xs:boolean in csv-options.xsd

Status in Zorba - The XQuery Processor:
  Fix Committed

Bug description:
  csv-options.xsd contains these attribute definitions:

  attribute name=ignore-foreign-input default=false
simpleType
  restriction base=string
pattern value=true|false/
  /restriction
/simpleType
  /attribute
  attribute name=accept-all-lines default=false
simpleType
  restriction base=string
pattern value=true|false/
  /restriction
/simpleType
  /attribute

  What is the reason it was defined using a string restriction and not
  xs:boolean?

  Like this:

  attribute name=ignore-foreign-input type=xs:boolean default=false/
  attribute name=accept-all-lines type=xs:boolean default=false/

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/925133/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 928135] Re: Segmentation fault while using Item or ItemFactory class in python

2012-02-14 Thread Matthias Brantner
** Changed in: zorba
 Assignee: (unassigned) = Juan Zacarias (juan457)

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/928135

Title:
  Segmentation fault while using Item or ItemFactory class in python

Status in Zorba - The XQuery Processor:
  New

Bug description:
  Here's the code to reproduce errors:

   import zorba_api
   item = zorba_api.ItemFactory()
   content_item.createInteger(4)
  Segmentation fault


  Zorba Version: 2.1.0

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/928135/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 866987] Re: Error for XTDE1310 should contain picture string

2012-02-14 Thread Sorin Marian Nasoi
Assigning to Nicolai because he implemented the format-number function.

** Changed in: zorba
 Assignee: Sorin Marian Nasoi (sorin.marian.nasoi) = Nicolae Brinza 
(nbrinza)

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/866987

Title:
  Error for XTDE1310 should contain picture string

Status in Zorba - The XQuery Processor:
  New

Bug description:
  In runtime/numerics/numerics_impl.cpp, the error messages for XTDE1310
  should contain the picture string but currently don't.  It's not clear
  to me where to get the entire picture string from; hence this bug.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/866987/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Bug 932186] Re: Encoding problem with JSON module

2012-02-14 Thread William Candillon
Any change to improve the error message?
I removed the link from the json branch.

** Branch unlinked: lp:~zorba-coders/zorba/feature-json_parser

-- 
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
https://bugs.launchpad.net/bugs/932186

Title:
  Encoding problem with JSON module

Status in Zorba - The XQuery Processor:
  Triaged

Bug description:
  Running the query attached using the following command line:
  ~/28msec/zorba/build/bin/zorba -q test.xq -f

  Results in the following error:
  dynamic error [err:FOCH0001]: 55357: invalid code point 

  However the following command:
  ~/28msec/zorba/build/bin/zorba -q test.xq -f --serialize-text
  Works fine.

  Removing the json:serialize() function call in the query prevents the
  error to happen.

To manage notifications about this bug go to:
https://bugs.launchpad.net/zorba/+bug/932186/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp