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

Proposed by Luis Rodriguez Gonzalez
Status: Merged
Approved by: Chris Hillery
Approved revision: 11422
Merged at revision: 11438
Proposed branch: lp:~zorba-coders/zorba/bug-1015468
Merge into: lp:zorba
Diff against target: 39 lines (+4/-10)
2 files modified
src/unit_tests/test_uri.cpp (+1/-1)
src/zorbatypes/URI.cpp (+3/-9)
To merge this branch: bzr merge lp:~zorba-coders/zorba/bug-1015468
Reviewer Review Type Date Requested Status
Luis Rodriguez Gonzalez Approve
Chris Hillery Approve
Review via email: mp+161712@code.launchpad.net

Commit message

Fix bug 1015468: wrong relative URI resolution with fragment-only relative URIs.

To post a comment you must log in.
Revision history for this message
Luis Rodriguez Gonzalez (kuraru) wrote :

I followed Chris' suggestion and now we use the full path to build the reference in the case when we don't have a path in the relative URI.

Revision history for this message
Chris Hillery (ceejatec) :
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-1015468-2013-05-03T08-19-58.515Z 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.

Revision history for this message
Luis Rodriguez Gonzalez (kuraru) :
review: Approve
Revision history for this message
Chris Hillery (ceejatec) wrote :

ChangeLog entry will be added on bump-2.9 branch.

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

Attempt to merge into lp:zorba failed due to conflicts:

text conflict in src/unit_tests/test_uri.cpp
text conflict in src/zorbatypes/URI.cpp

lp:~zorba-coders/zorba/bug-1015468 updated
11422. By Luis Rodriguez Gonzalez

- Remerged with trunk

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-1015468-2013-05-07T22-42-52.906Z 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/unit_tests/test_uri.cpp'
--- src/unit_tests/test_uri.cpp 2013-05-01 18:37:44 +0000
+++ src/unit_tests/test_uri.cpp 2013-05-07 21:47:27 +0000
@@ -292,7 +292,7 @@
292 // "",292 // "",
293 // "/b/c/g",293 // "/b/c/g",
294 // "",294 // "",
295 // "".295 // "",
296 // ""296 // ""
297 //}297 //}
298 ,298 ,
299299
=== modified file 'src/zorbatypes/URI.cpp'
--- src/zorbatypes/URI.cpp 2013-05-03 00:28:19 +0000
+++ src/zorbatypes/URI.cpp 2013-05-07 21:47:27 +0000
@@ -1311,20 +1311,14 @@
13111311
1312 if (base_uri->is_set(Path)) 1312 if (base_uri->is_set(Path))
1313 {1313 {
1314 // I think this is a bug in xerces because it doesn't remove the last segment
1315 zstring path;1314 zstring path;
1316 base_uri->get_path(path);1315 base_uri->get_path(path);
13171316 thePath = path;
1318 zstring::size_type last_slash = path.rfind("/");
1319 if ( last_slash != zstring::npos )
1320 thePath = path.substr(0, last_slash+1);
1321 else
1322 thePath = path;
1323
1324 set_state(Path);1317 set_state(Path);
1325 }1318 }
13261319
1327 if ( base_uri->is_set(QueryString) && !is_set(QueryString) )1320 if ( !is_set(QueryString) && base_uri->is_set(QueryString) &&
1321 !base_uri->get_encoded_query().empty() )
1328 {1322 {
1329 base_uri->get_query(theQueryString);1323 base_uri->get_query(theQueryString);
13301324

Subscribers

People subscribed via source and target branches