Handle Shareable Link p_token #295

Open
opened 2025-11-13 11:55:56 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @uncle-tee on GitHub (May 3, 2025).

I'm using an app that requests a server URL. The Pangolin shareable link includes a p_token as a query parameter. However, it incorrectly appends additional path parameters directly to the URL, resulting in a malformed resource URL.

Generated App URL

https://pangolin.server.com**/?p_token=token**/api/v1/links?cursor=

Expected Behavior

Bager should detect if the p_token query parameter exists in the base url, remove it from the base URL, and append it at the end of the final constructed URL, before performing authentication

Originally created by @uncle-tee on GitHub (May 3, 2025). I'm using an app that requests a server URL. The Pangolin shareable link includes a p_token as a query parameter. However, it incorrectly appends additional path parameters directly to the URL, resulting in a malformed resource URL. Generated App URL `https://pangolin.server.com**/?p_token=token**/api/v1/links?cursor=` **Expected Behavior** Bager should detect if the p_token query parameter exists in the base url, remove it from the base URL, and append it at the end of the final constructed URL, before performing authentication
GiteaMirror added the bug label 2025-11-13 11:55:56 -06:00
Author
Owner

@miloschwartz commented on GitHub (May 4, 2025):

Thanks I marked this as a bug and will look at the code

@miloschwartz commented on GitHub (May 4, 2025): Thanks I marked this as a bug and will look at the code
Author
Owner

@miloschwartz commented on GitHub (May 10, 2025):

What version of Pangolin are you on?
Can you describe the series steps you took to reproduce this?

Thanks!

@miloschwartz commented on GitHub (May 10, 2025): What version of Pangolin are you on? Can you describe the series steps you took to reproduce this? Thanks!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/pangolin#295