php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59867 Can get status from twiter (regression ?)
Submitted: 2011-07-22 12:16 UTC Modified: 2011-07-22 12:56 UTC
From: Fedora at FamilleCollet dot com Assigned:
Status: Closed Package: oauth (PECL)
PHP Version: 5_3 SVN-2011-07-22 (dev) OS: GNU/Linux (Fedora 14)
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: Fedora at FamilleCollet dot com
New email:
PHP Version: OS:

 

 [2011-07-22 12:16 UTC] Fedora at FamilleCollet dot com
Description:
------------
Seems to have a regression which result in a "Invalid auth/bad request" when calling 
https://twitter.com/account/verify_credentials.json.

Version 1.1.0 : OK.
Version 1.2   : segfault (probably #22819)
Version 1.2.1 : auth issue


Other call still work, p.e.
https://twitter.com/statuses/update.json


Reproduce code:
---------------
The getStatus function in 
https://raw.github.com/remicollet/twit/master/twit.php



Expected result:
----------------
$ twit

twit version 0.1

Name: Remi Collet
Last: something...
Date: Tue Jul 19 19:44:41 +0000 2011


Actual result:
--------------
$ twit

twit version 0.1

Error: Invalid auth/bad request (got a 401, expected HTTP/1.1 20X or a redirect)


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-07-22 12:50 UTC] jawed@php.net
If the HTTP method parameter wasn't specified the SBS was being 
generated before we set a the default HTTP method (GET). The result 
looking like:

["sbs"]=>
  string(325) "
(null)&https%3A%2F%2Fapi.twitter.com%2F1%2Faccount%2Fverify_crede
ntials.json&oauth_consumer_key%3D0BeHBra5f0AnYTra9z14Q%26oauth_
nonce%3Ddasdad%26oauth_signature_method%3DHMAC-
SHA1%26oauth_timestamp%3D1311353206%26oauth_token%3D1740672
5-sadasdda%26oauth_version%3D1.0"

I'm fixing this in trunk and I'm going to blast the 1.2.1 release after releasing 
1.2.2. Thx for the report and sorry for the regression.

- JJ
 [2011-07-22 12:56 UTC] jawed@php.net
Thank you for your bug report. This issue has been fixed
in the latest released version of the package, which you can download at
http://pecl.php.net/get/oauth

Fixed in 1.2.2.

- JJ
 [2011-07-22 13:17 UTC] fedora at famillecollet dot com
Thanks a lot for the very quick fix
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 02:01:29 2024 UTC