Skip to content

too many path pieces #23

Closed
Closed

Description

@losciamano

I have registered a HttpResource on the Path "CSPInternal" and allowed only method POST.
In render_POST I print all path pieces but I get strange results.

curl -X POST -d "foo=bar" https://localhost:9999/CSPInternal/newMethod"

If I use the method getPath() of HttpRequest i get the right value : CSPInternal/newMethod
But if I use getPathPieces() a vector with 4 elements is returned:

  • 0 : CSPInternal
  • 1: newMethod
  • 2: CSPInternal
  • 3: newMethod

Activity

  1. losciamano commented on Apr 26, 2012

    @losciamano
    CollaboratorAuthor

    Inside anserToConnection method the setPath of the HttpRequest is called and inside this method the path pieces are pushed back in a vector. Due to multiple calls of answerToConnection (a normal behavior) the vector grows larger than necessary

  2. etr commented on Apr 26, 2012

    @etr
    Owner

    Thanks for the bug signal; I just pushed an update that solve this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions