Authorization header not being set correctly

Bug #1337493 reported by dobey
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Pay Service
Fix Released
Critical
dobey
pay-service (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

To do the signing of the request in the verification back-end, the following code is used:

        /* Sign the request */
        auto auth = token->signUrl(url, "GET");
        if (!auth.empty())
        {
            std::string header("Authorization: ");
            header += auth;
            curlHeaders = curl_slist_append(curlHeaders, auth.c_str());
        }

This is incorrect and simply appending the signature as a header, without the required header name.

Related branches

dobey (dobey)
Changed in pay-service:
assignee: Rodney Dawes (dobey) → nobody
status: In Progress → Confirmed
dobey (dobey)
Changed in pay-service:
status: Confirmed → In Progress
assignee: nobody → Rodney Dawes (dobey)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pay-service - 0.1+14.10.20140710-0ubuntu1

---------------
pay-service (0.1+14.10.20140710-0ubuntu1) utopic; urgency=low

  [ Ted Gould ]
  * Correct error message copy
  * Bootstrap documentation for libpay

  [ Rodney Dawes ]
  * Drop the extra include of FindPkgConfig as it is not needed. (LP:
    #1337332)
  * Append a / to the URL path to avoid a redirect from the server. (LP:
    #1340350)
  * Append the correct thing to the headers list. (LP: #1337493)
 -- Ubuntu daily release <email address hidden> Thu, 10 Jul 2014 21:11:23 +0000

Changed in pay-service (Ubuntu):
status: New → Fix Released
dobey (dobey)
Changed in pay-service:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.