Merge lp:~zorba-coders/zorba/fix-oauth-security into lp:zorba/oauth-module

Proposed by Matthias Brantner
Status: Merged
Approved by: Chris Hillery
Approved revision: 27
Merged at revision: 25
Proposed branch: lp:~zorba-coders/zorba/fix-oauth-security
Merge into: lp:zorba/oauth-module
Diff against target: 46 lines (+4/-8)
2 files modified
src/com/zorba-xquery/www/modules/oauth/CMakeLists.txt (+1/-5)
src/com/zorba-xquery/www/modules/oauth/client.xq (+3/-3)
To merge this branch: bzr merge lp:~zorba-coders/zorba/fix-oauth-security
Reviewer Review Type Date Requested Status
Chris Hillery Approve
Sorin Marian Nasoi Approve
Review via email: mp+117813@code.launchpad.net

Commit message

fix to work with hmac v.2 module

Description of the change

adapted to new hmac v.2 module

To post a comment you must log in.
Revision history for this message
Chris Hillery (ceejatec) wrote :

Shouldn't you also change the import statement to explicitly import v2 of the hmac module?

Revision history for this message
Sorin Marian Nasoi (sorin.marian.nasoi) :
review: Approve
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 :

The attempt to merge lp:~zorba-coders/zorba/fix-oauth-security into lp:zorba/oauth-module 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 fix-oauth-security-2012-12-14T06-43-34.462Z 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

27. By Chris Hillery

Bumped DECLARE_ZORBA_MODULE() version to match module; removed commented-out
code.

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 fix-oauth-security-2012-12-14T08-49-34.391Z 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/com/zorba-xquery/www/modules/oauth/CMakeLists.txt'
--- src/com/zorba-xquery/www/modules/oauth/CMakeLists.txt 2011-08-15 13:29:12 +0000
+++ src/com/zorba-xquery/www/modules/oauth/CMakeLists.txt 2012-12-14 07:20:25 +0000
@@ -12,10 +12,6 @@
12# See the License for the specific language governing permissions and12# See the License for the specific language governing permissions and
13# limitations under the License.13# limitations under the License.
1414
15DECLARE_ZORBA_MODULE (URI "http://www.zorba-xquery.com/modules/oauth/client" VERSION 1.0 FILE "client.xq")15DECLARE_ZORBA_MODULE (URI "http://www.zorba-xquery.com/modules/oauth/client" VERSION 2.0 FILE "client.xq")
16# This test is introduced by DECLARE_ZORBA_MODULE(), so this is the
17# best place for the EXPECTED_FAILURE() (especially because we're
18# cheating and using the undocumented ${num_zorba_modules}).
19#EXPECTED_FAILURE("check_mod_${num_zorba_modules}_client.xq" 3389465)
2016
21DECLARE_ZORBA_MODULE (URI "http://www.zorba-xquery.com/modules/oauth/error" VERSION 1.0 FILE "error.xq")17DECLARE_ZORBA_MODULE (URI "http://www.zorba-xquery.com/modules/oauth/error" VERSION 1.0 FILE "error.xq")
2218
=== modified file 'src/com/zorba-xquery/www/modules/oauth/client.xq'
--- src/com/zorba-xquery/www/modules/oauth/client.xq 2012-04-25 16:32:43 +0000
+++ src/com/zorba-xquery/www/modules/oauth/client.xq 2012-12-14 07:20:25 +0000
@@ -31,7 +31,7 @@
31module namespace oauth = "http://www.zorba-xquery.com/modules/oauth/client";31module namespace oauth = "http://www.zorba-xquery.com/modules/oauth/client";
3232
33import module namespace ra = "http://www.zorba-xquery.com/modules/random";33import module namespace ra = "http://www.zorba-xquery.com/modules/random";
34import module namespace hmac = "http://www.zorba-xquery.com/modules/cryptography/hmac";34import module namespace hmac = "http://www.zorba-xquery.com/modules/cryptography/hmac#2.0";
35import module namespace http-client = "http://expath.org/ns/http-client";35import module namespace http-client = "http://expath.org/ns/http-client";
36import schema namespace http = "http://expath.org/ns/http-client";36import schema namespace http = "http://expath.org/ns/http-client";
3737
@@ -52,7 +52,7 @@
5252
53declare option op:disable "f:trace";53declare option op:disable "f:trace";
5454
55declare option ver:module-version "1.0";55declare option ver:module-version "2.0";
5656
57(:~57(:~
58 : Utility function to build a service provider object.58 : Utility function to build a service provider object.
@@ -504,7 +504,7 @@
504 : uses the hmac-sha1 algorithm found here @see http://tools.ietf.org/html/rfc2104504 : uses the hmac-sha1 algorithm found here @see http://tools.ietf.org/html/rfc2104
505 :)505 :)
506 if($oauth-signature-method = "HMAC-SHA1")506 if($oauth-signature-method = "HMAC-SHA1")
507 then hmac:sha1($base-string, $key)507 then xs:string(hmac:sha1($base-string, $key))
508 (:508 (:
509 : RSA-SHA1509 : RSA-SHA1
510 : @see http://tools.ietf.org/html/rfc5849#section-3.4.3 510 : @see http://tools.ietf.org/html/rfc5849#section-3.4.3

Subscribers

People subscribed via source and target branches

to all changes: