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
1=== modified file 'src/unit_tests/test_uri.cpp'
2--- src/unit_tests/test_uri.cpp 2013-05-01 18:37:44 +0000
3+++ src/unit_tests/test_uri.cpp 2013-05-07 21:47:27 +0000
4@@ -292,7 +292,7 @@
5 // "",
6 // "/b/c/g",
7 // "",
8- // "".
9+ // "",
10 // ""
11 //}
12 ,
13
14=== modified file 'src/zorbatypes/URI.cpp'
15--- src/zorbatypes/URI.cpp 2013-05-03 00:28:19 +0000
16+++ src/zorbatypes/URI.cpp 2013-05-07 21:47:27 +0000
17@@ -1311,20 +1311,14 @@
18
19 if (base_uri->is_set(Path))
20 {
21- // I think this is a bug in xerces because it doesn't remove the last segment
22 zstring path;
23 base_uri->get_path(path);
24-
25- zstring::size_type last_slash = path.rfind("/");
26- if ( last_slash != zstring::npos )
27- thePath = path.substr(0, last_slash+1);
28- else
29- thePath = path;
30-
31+ thePath = path;
32 set_state(Path);
33 }
34
35- if ( base_uri->is_set(QueryString) && !is_set(QueryString) )
36+ if ( !is_set(QueryString) && base_uri->is_set(QueryString) &&
37+ !base_uri->get_encoded_query().empty() )
38 {
39 base_uri->get_query(theQueryString);
40

Subscribers

People subscribed via source and target branches