FAQ
Edit report at https://pear.php.net/bugs/bug.php?id=20107&edit=1

  ID: 20107
  Updated by: mike@silverorange.com
  Reported By: mike@silverorange.com
  Summary: Array query parameters and post data not handled
                     properly
  Status: Open
  Type: Bug
  Package: HTTP_OAuth
  Package Version: SVN
  PHP Version: Irrelevant
  Roadmap Versions:
  New Comment:

https://github.com/pear/HTTP_OAuth/pull/3


Previous Comments:
------------------------------------------------------------------------

[2013-10-31 20:58:36] gauthierm

Description:
------------
If you do an OAuth request to http://myservice.com/?
ids[]=2&ids[]=3 HTTP_OAuth only understands the last ids[]
parameter.

PHP parses these into an array. HTTP_OAuth should do the
same.

This is part of a larger issue. Any query parameter can be
duplicated in HTTP and OAuth and the signature base is
affected. The general issue is much harder to solve than just
supporting arrays and would require significant API changes.

------------------------------------------------------------------------

Search Discussions

  • Mike at Nov 1, 2013 at 1:57 pm
    Edit report at https://pear.php.net/bugs/bug.php?id=20107&edit=1

      ID: 20107
      Updated by: mike@silverorange.com
      Reported By: mike@silverorange.com
      Summary: Array query parameters and post data not handled
                         properly
      Status: Open
      Type: Bug
      Package: HTTP_OAuth
      Package Version: SVN
      PHP Version: Irrelevant
      Roadmap Versions:
      New Comment:

    With the PR, you can access ids[] as an array using
    $request->getParameters() or
    $request['ids[]'].


    Previous Comments:
    ------------------------------------------------------------------------

    [2013-11-01 15:03:44] gauthierm

    https://github.com/pear/HTTP_OAuth/pull/3

    ------------------------------------------------------------------------

    [2013-10-31 20:58:36] gauthierm

    Description:
    ------------
    If you do an OAuth request to http://myservice.com/?
    ids[]=2&ids[]=3 HTTP_OAuth only understands the last ids[]
    parameter.

    PHP parses these into an array. HTTP_OAuth should do the
    same.

    This is part of a larger issue. Any query parameter can be
    duplicated in HTTP and OAuth and the signature base is
    affected. The general issue is much harder to solve than just
    supporting arrays and would require significant API changes.

    ------------------------------------------------------------------------
  • Mike at Nov 1, 2013 at 2:19 pm
    Edit report at https://pear.php.net/bugs/bug.php?id=20107&edit=1

      ID: 20107
      Updated by: mike@silverorange.com
      Reported By: mike@silverorange.com
      Summary: Array query parameters and post data not handled
                         properly
    -Status: Open
    +Status: Closed
      Type: Bug
      Package: HTTP_OAuth
      Package Version: SVN
      PHP Version: Irrelevant
    -Assigned To:
    +Assigned To: gauthierm
      Roadmap Versions:
      New Comment:

    -Status: Open
    +Status: Closed
    -Assigned To:
    +Assigned To: gauthierm
    This bug has been fixed in SVN.

    If this was a documentation problem, the fix will appear on pear.php.net
    by the end of next Sunday (CET).

    If this was a problem with the pear.php.net website, the change should
    be live shortly.

    Otherwise, the fix will appear in the package's next release.

    Thank you for the report and for helping us make PEAR better.




    Previous Comments:
    ------------------------------------------------------------------------

    [2013-11-01 15:05:13] gauthierm

    With the PR, you can access ids[] as an array using
    $request->getParameters() or
    $request['ids[]'].

    ------------------------------------------------------------------------

    [2013-11-01 15:03:44] gauthierm

    https://github.com/pear/HTTP_OAuth/pull/3

    ------------------------------------------------------------------------

    [2013-10-31 20:58:36] gauthierm

    Description:
    ------------
    If you do an OAuth request to http://myservice.com/?
    ids[]=2&ids[]=3 HTTP_OAuth only understands the last ids[]
    parameter.

    PHP parses these into an array. HTTP_OAuth should do the
    same.

    This is part of a larger issue. Any query parameter can be
    duplicated in HTTP and OAuth and the signature base is
    affected. The general issue is much harder to solve than just
    supporting arrays and would require significant API changes.

    ------------------------------------------------------------------------

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedNov 1, '13 at 1:56p
activeNov 1, '13 at 2:19p
posts3
users1
websitepear.php.net

1 user in discussion

Mike: 3 posts

People

Translate

site design / logo © 2022 Grokbase