Merge lp:~zorba-coders/zorba/bug-1134008 into lp:zorba

Proposed by Chris Hillery
Status: Merged
Approved by: Chris Hillery
Approved revision: 11430
Merged at revision: 11429
Proposed branch: lp:~zorba-coders/zorba/bug-1134008
Merge into: lp:zorba
Diff against target: 102 lines (+22/-16)
8 files modified
src/runtime/sequences/sequences_impl.cpp (+2/-2)
test/fots/CMakeLists.txt (+3/-13)
test/fots_driver/fots-driver.xq (+1/-1)
test/rbkt/ExpQueryResults/zorba/uris/doc-base-uri.xml.res (+1/-0)
test/rbkt/ExpQueryResults/zorba/uris/file-base-uri.xml.res (+1/-0)
test/rbkt/Queries/zorba/uris/doc-base-uri.xq (+4/-0)
test/rbkt/Queries/zorba/uris/file-base-uri.xq (+9/-0)
test/rbkt/Queries/zorba/uris/input.xml (+1/-0)
To merge this branch: bzr merge lp:~zorba-coders/zorba/bug-1134008
Reviewer Review Type Date Requested Status
Sorin Marian Nasoi Approve
Chris Hillery Approve
Review via email: mp+162000@code.launchpad.net

Commit message

Set the base-uri of all nodes produced by fn:doc() to be the document retrieval URI, as required by XML Base spec.

To post a comment you must log in.
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

The attempt to merge lp:~zorba-coders/zorba/bug-1134008 into lp:zorba failed. Below is the output from the failed tests.

CMake Error at /home/ceej/zo/testing/zorbatest/tester/TarmacLander.cmake:275 (message):
  Validation queue job bug-1134008-2013-05-02T00-25-39.206Z is finished. The
  final status was:

  1 tests did not succeed - changes not commited.

Error in read script: /home/ceej/zo/testing/zorbatest/tester/TarmacLander.cmake

Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

The attempt to merge lp:~zorba-coders/zorba/bug-1134008 into lp:zorba failed. Below is the output from the failed tests.

CMake Error at /home/ceej/zo/testing/zorbatest/tester/TarmacLander.cmake:275 (message):
  Validation queue job bug-1134008-2013-05-02T04-55-43.961Z is finished. The
  final status was:

  1 tests did not succeed - changes not commited.

Error in read script: /home/ceej/zo/testing/zorbatest/tester/TarmacLander.cmake

Revision history for this message
Chris Hillery (ceejatec) :
review: Approve
Revision history for this message
Chris Hillery (ceejatec) wrote :

Catalog002 needs to be marked as EXPECTED_FOTS_FAILURE. Also it and Catalog010 and Catalog011 can be associated with bug 1172273. After making that change, this can be merged.

lp:~zorba-coders/zorba/bug-1134008 updated
11428. By sorin.marian.nasoi <email address hidden>

merged lp:zorba trunk.

11429. By sorin.marian.nasoi <email address hidden>

- fixed bug that caused 'comment' node to be wrong when run with 'ctestMode' set to 'true'. Please note that this issue did not impact the FOTS reporting since the reports are generated with 'ctestMode' set to 'false'.
- added EXPECTED_FOTS_FAILURE for 'Catalog002' test-case.

Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue job bug-1134008-2013-05-02T20-19-39.258Z is finished. The final status was:

All tests succeeded!

Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Voting does not meet specified criteria. Required: Approve > 1, Disapprove < 1, Needs Fixing < 1, Pending < 1, Needs Information < 1, Resubmit < 1. Got: 1 Approve, 1 Pending.

lp:~zorba-coders/zorba/bug-1134008 updated
11430. By sorin.marian.nasoi <email address hidden>

- added LP bug number for the 3 remaining failures in 'app-CatalogCheck' test-set

Revision history for this message
Sorin Marian Nasoi (sorin.marian.nasoi) :
review: Approve
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :
Revision history for this message
Zorba Build Bot (zorba-buildbot) wrote :

Validation queue job bug-1134008-2013-05-03T07-17-48.644Z is finished. The final status was:

All tests succeeded!

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/runtime/sequences/sequences_impl.cpp'
--- src/runtime/sequences/sequences_impl.cpp 2013-04-30 23:57:10 +0000
+++ src/runtime/sequences/sequences_impl.cpp 2013-05-02 20:59:26 +0000
@@ -1895,6 +1895,7 @@
1895 store::LoadProperties lLoadProperties;1895 store::LoadProperties lLoadProperties;
1896 lLoadProperties.setStoreDocument(true);1896 lLoadProperties.setStoreDocument(true);
1897 lLoadProperties.setDTDValidate( aSctx->is_feature_set( feature::dtd ) );1897 lLoadProperties.setDTDValidate( aSctx->is_feature_set( feature::dtd ) );
1898 lLoadProperties.setBaseUri(lNormUri);
18981899
1899 // Resolve URI to a stream1900 // Resolve URI to a stream
1900 zstring lErrorMessage;1901 zstring lErrorMessage;
@@ -1927,8 +1928,7 @@
1927 try1928 try
1928 {1929 {
1929 store::Store& lStore = GENV.getStore();1930 store::Store& lStore = GENV.getStore();
1930 zstring lBaseUri = aSctx->get_base_uri();1931 oResult = lStore.loadDocument(lNormUri, lNormUri, *lStream, lLoadProperties);
1931 oResult = lStore.loadDocument(lBaseUri, lNormUri, *lStream, lLoadProperties);
1932 fillTime(t0, t0user, aPlanState);1932 fillTime(t0, t0user, aPlanState);
1933 }1933 }
1934 catch (ZorbaException& e)1934 catch (ZorbaException& e)
19351935
=== modified file 'test/fots/CMakeLists.txt'
--- test/fots/CMakeLists.txt 2013-05-02 01:21:38 +0000
+++ test/fots/CMakeLists.txt 2013-05-02 20:59:26 +0000
@@ -157,19 +157,9 @@
157157
158# This test passes on the old and new RQ machines, but fails for Sorin.158# This test passes on the old and new RQ machines, but fails for Sorin.
159#EXPECTED_FOTS_FAILURE (fn-normalize-unicode fn-normalize-unicode-11 0)159#EXPECTED_FOTS_FAILURE (fn-normalize-unicode fn-normalize-unicode-11 0)
160160EXPECTED_FOTS_FAILURE (app-CatalogCheck Catalog002 1172273)
161EXPECTED_FOTS_FAILURE (app-CatalogCheck Catalog001 0)161EXPECTED_FOTS_FAILURE (app-CatalogCheck Catalog010 1172273)
162EXPECTED_FOTS_FAILURE (app-CatalogCheck Catalog002 0)162EXPECTED_FOTS_FAILURE (app-CatalogCheck Catalog011 1172273)
163EXPECTED_FOTS_FAILURE (app-CatalogCheck Catalog003 0)
164EXPECTED_FOTS_FAILURE (app-CatalogCheck Catalog004 0)
165EXPECTED_FOTS_FAILURE (app-CatalogCheck Catalog005 0)
166EXPECTED_FOTS_FAILURE (app-CatalogCheck Catalog006 0)
167EXPECTED_FOTS_FAILURE (app-CatalogCheck Catalog007 0)
168EXPECTED_FOTS_FAILURE (app-CatalogCheck Catalog008 0)
169EXPECTED_FOTS_FAILURE (app-CatalogCheck Catalog009 0)
170EXPECTED_FOTS_FAILURE (app-CatalogCheck Catalog010 0)
171EXPECTED_FOTS_FAILURE (app-CatalogCheck Catalog011 0)
172EXPECTED_FOTS_FAILURE (app-CatalogCheck Catalog012 0)
173EXPECTED_FOTS_FAILURE (fn-available-environment-variables fn-available-environment-variables-011 0)163EXPECTED_FOTS_FAILURE (fn-available-environment-variables fn-available-environment-variables-011 0)
174EXPECTED_FOTS_FAILURE (fn-deep-equal K2-SeqDeepEqualFunc-36 0)164EXPECTED_FOTS_FAILURE (fn-deep-equal K2-SeqDeepEqualFunc-36 0)
175EXPECTED_FOTS_FAILURE (fn-deep-equal K2-SeqDeepEqualFunc-37 0)165EXPECTED_FOTS_FAILURE (fn-deep-equal K2-SeqDeepEqualFunc-37 0)
176166
=== modified file 'test/fots_driver/fots-driver.xq'
--- test/fots_driver/fots-driver.xq 2013-05-01 22:22:26 +0000
+++ test/fots_driver/fots-driver.xq 2013-05-02 20:59:26 +0000
@@ -941,7 +941,7 @@
941 $env,941 $env,
942 $duration,942 $duration,
943 $verbose,943 $verbose,
944 if(not($checkPass) and $ctestMode)944 if(not($checkPass) and ($ctestMode and exists($expFailureTC)))
945 then "Test case passed but it is marked with EXPECTED_FOTS_FAILURE in test/fots/CMakeLists.txt"945 then "Test case passed but it is marked with EXPECTED_FOTS_FAILURE in test/fots/CMakeLists.txt"
946 else ())946 else ())
947 }947 }
948948
=== added file 'test/rbkt/ExpQueryResults/zorba/uris/doc-base-uri.xml.res'
--- test/rbkt/ExpQueryResults/zorba/uris/doc-base-uri.xml.res 1970-01-01 00:00:00 +0000
+++ test/rbkt/ExpQueryResults/zorba/uris/doc-base-uri.xml.res 2013-05-02 20:59:26 +0000
@@ -0,0 +1,1 @@
1true
02
=== added file 'test/rbkt/ExpQueryResults/zorba/uris/file-base-uri.xml.res'
--- test/rbkt/ExpQueryResults/zorba/uris/file-base-uri.xml.res 1970-01-01 00:00:00 +0000
+++ test/rbkt/ExpQueryResults/zorba/uris/file-base-uri.xml.res 2013-05-02 20:59:26 +0000
@@ -0,0 +1,1 @@
1true
02
=== added file 'test/rbkt/Queries/zorba/uris/doc-base-uri.xq'
--- test/rbkt/Queries/zorba/uris/doc-base-uri.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/uris/doc-base-uri.xq 2013-05-02 20:59:26 +0000
@@ -0,0 +1,4 @@
1(: The base-uri of a document node should be the retrieval URI. :)
2let $uri := fn:resolve-uri( "input.xml", fn:static-base-uri() )
3let $doc := fn:doc($uri)
4return (fn:base-uri($doc) eq $uri)
05
=== added file 'test/rbkt/Queries/zorba/uris/file-base-uri.xq'
--- test/rbkt/Queries/zorba/uris/file-base-uri.xq 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/uris/file-base-uri.xq 2013-05-02 20:59:26 +0000
@@ -0,0 +1,9 @@
1import module namespace file="http://expath.org/ns/file";
2import module namespace x="http://www.zorba-xquery.com/modules/xml";
3import schema namespace opt="http://www.zorba-xquery.com/modules/xml-options";
4
5let $uri := fn:resolve-uri( "input.xml", fn:static-base-uri() )
6let $content := file:read-text($uri)
7let $doc := x:parse($content,
8 <opt:options><opt:base-uri opt:value="{$uri}"/></opt:options>)
9return (fn:base-uri($doc) eq $uri)
010
=== added file 'test/rbkt/Queries/zorba/uris/input.xml'
--- test/rbkt/Queries/zorba/uris/input.xml 1970-01-01 00:00:00 +0000
+++ test/rbkt/Queries/zorba/uris/input.xml 2013-05-02 20:59:26 +0000
@@ -0,0 +1,1 @@
1<a/>

Subscribers

People subscribed via source and target branches