XQXQ generate UUID bug

Bug #1056704 reported by Sorin Marian Nasoi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
High
Juan Zacarias

Bug Description

The XQXQ PrepareMainModuleFunction::getUUID() function needs to be more fine grained.

For fixing I would suggest 2 possible approaches:
- implement PrepareMainModuleFunction signatures that receive a UUID
- use the generate UUID functionality in src/util/uuid.cpp (see src/runtime/random/random_impl.cpp, function
UuidIterator::nextImpl)

Steps for reproducing the error:
1) check out the FOTS,
see http://bazaar.launchpad.net/~zorba-coders/zorba/feature_fots/view/head:/test/fots_driver/README.TXT
let's say you downloaded it to FOTS_PATH

2) check out the XQXQ module branch from lp:~zorba-coders/zorba/xqxq-url-resolver

3) check out the Zorba from lp:~zorba-coders/zorba/feature_fots

4) compile Zorba with XQXQ module

5) run
./zorba -f -q ../../test/fots_driver/fots.xq -e fotsPath:=FOTS_PATH -e mode:=run-test-cases -e testSetPrefixes:=fn-abs -o result_1.xml --indent
This will run all the fn-abs tests and output the failing ones in result_1.xml.

6) run
./zorba -f -q ../../test/fots_driver/fots.xq -e fotsPath:=FOTS_PATH -e mode:=run-test-cases -e testSetPrefixes:=fn-abs -e testCasePrefixes:=K-ABSFunc-3 -o result_2.xml --indent
This will run all only the K-ABSFunc-3 that was failing as you saw in result_1.xml.

Now, as you can wee in the result_1.xml all the fn-abs tests have the same exact UUID which is not right.

Related branches

Revision history for this message
Sorin Marian Nasoi (sorin.marian.nasoi) wrote :
Revision history for this message
Matthias Brantner (matthias-brantner) wrote :

Paul, could you please expose the uuid generating functionality in the public c++ api? This will enable module developers to use it in their module.

Changed in zorba:
milestone: none → 2.8
assignee: Juan Zacarias (juan457) → Paul J. Lucas (paul-lucas)
Revision history for this message
Paul J. Lucas (paul-lucas) wrote :

Done.

Changed in zorba:
status: New → In Progress
assignee: Paul J. Lucas (paul-lucas) → Juan Zacarias (juan457)
Juan Zacarias (juan457)
Changed in zorba:
status: In Progress → Fix Committed
Changed in zorba:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers