-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Labels
bugSomething isn't workingSomething isn't working
Description
What happened?
When I drag and drop a request from a collection that has some applied authentication headers, to another collection that has different authentication, the request gets sent with the old collection headers and does not get updated.
Steps to reproduce?
1. Create 2 collections with different authentication headers that give different permissions.
2. Make a request from the first collection (that has permissions to do it), it should work normally.
3. Drag the request and drop it into the other collection.
4. Although the second collection is not granted permissions to do the request, the request will work as it worked in step 2.What did you expect to happen?
I expected the request to be done with the new collection headers.
Platform
Linux
HTTPie Desktop version
2024.1.2
Relevant log output
The bearer token I provided into the new collection:
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6ImdvYXRtb2Rlc3RlIiwiaWQiOiI0OWU5ZDk0Ni1kMGRjLTRjZDctOTlhNS02YTk3NGJmODJjZWMiLCJyb2xlIjoiQlJBTkNIX01BTkFHRVIiLCJpYXQiOjE3MzI5ODMzNTcsImV4cCI6MTczNTU3NTM1N30._qnD8Btol0-hdjDu9e5bJUjEcCa6kplobCrAk2dC-98and here is the done request code (from the preview), just look at the bearer token:
POST /transaction/transfer HTTP/1.1
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VybmFtZSI6Imxlb21lc3NpIiwiaWQiOiI0NmVmZmU0OC0wYmM0LTRlNzktOWQ2Ny0zZWVjN2VlMzYxNWEiLCJyb2xlIjoiQlJBTkNIX01BTkFHRVIiLCJpYXQiOjE3MzI4OTA3ODUsImV4cCI6MTczNTQ4Mjc4NX0.AI50ndm0uYJ_vcWl0tX1yUMo_UIJhf_etYu6q8Ctx3Y
Content-Length: 179
Content-Type: application/json
Host: localhost:5050
User-Agent: HTTPie
{
"productId": 2,
"amount": 26,
"branchId": "1ff8c55a-f45d-4068-baa5-37db44f7c849",
"type": "TRANSFER",
"destinationBranchId": "f2e1644e-a6dc-4337-90b1-ead4fb5ee6b1"
}
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working