Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in Sub Resources' Location header #1442

Open
itsjef opened this issue Feb 19, 2021 · 2 comments
Open

Bug in Sub Resources' Location header #1442

itsjef opened this issue Feb 19, 2021 · 2 comments

Comments

@itsjef
Copy link
Contributor

itsjef commented Feb 19, 2021

Setup

Follow this snippet

Expected Behavior

When creating sub-resource items, I expect the Location header to be the URL of the first item.

$ curl -i -X POST http://127.0.0.1:5000/lists/60304123b0727836fbc24d0f/items -d 'name=Alice'

Location: http://127.0.0.1:5000/lists/60304123b0727836fbc24d0f/items/60304146b0727836fbc24d10

Actual Behavior

Path to the parent resource is duplicated.

Location: http://127.0.0.1:5000/lists/60304123b0727836fbc24d0f/lists/60304123b0727836fbc24d0f/items/60304146b0727836fbc24d10

Environment

  • Python version: 3.8.6
  • Eve version: 1.1.5
@stale
Copy link

stale bot commented Apr 16, 2022

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale label Apr 16, 2022
@itsjef
Copy link
Contributor Author

itsjef commented Apr 18, 2022

It is still relevant.

@stale stale bot removed the stale label Apr 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant