Add site-agnostic pob://code/ scheme for inline build imports#9815
Add site-agnostic pob://code/ scheme for inline build imports#9815AiSatan wants to merge 2 commits intoPathOfBuildingCommunity:devfrom
Conversation
|
What's the use case for something like this? People don't share codes directly because they're long and ugly, and often get mangled by markdown. |
To skip upload to a third-party paste site (pobb.in, maxroll, etc) and wire the button on your own site directly to the code you have, instead of pobbin or others. it's not for people to share the code, it's to skip that and open the PoB directly. pobbin (maxroll, etc) has this format for it: poeninja has different format: I think it's more fair to remove dependency on that hardcoded white-list, and allow generic "code" which accepts existing base64 string, so anyone can use it. |
|
@AiSatan why would someone be running there own site? If you're using it for AI purposes then you're free to just keep this fearture for your own fork |
It's not for me, it's for end user. |
|
We are not interested in allowing any site to auto-open links. It's a security issue and also prevents poor quality sites from popping up If a site needs it an offers a quality improvement for the PoE user base then we are open to consider adding it |
|
it's not auto-opening links, pobbin has it, are we talking about the same thing? If a base64 string is a security issue atm, it's should be addressed in PoB codebase. This has clear (and covered with tests with your code base format for --pass/--fail with description) regex for base64 string.
This kinda gatekeeping/reddit mod vibe here. This whole interaction very strange to me. |
|
The reason we have a whitelist is so websites that promote RMT or other unsavory behavior can't have the same level of functionality and apparent legitimacy as well-known build sites that the community trusts. We're open to adding more sites as they gain traction in the community, but no one has done that/needed to do that in a long time. If you make such a site and want to integrate it with PoB, feel free to open a new PR and we can review it at that time. |
|
I'm very confused rn. At this point you said:
You do realise that any site at this moment can simply upload the build to the pobbin and make a button with href to pob://pobbin/code and nothign changes for them? This allows a website to cut the middle man and give original pob/raw base64/xml directly without a proxy |
|
To be clear, @LocalIdentity and I are different people 😄 A site could do that, true, but that would be a clear indicator that the website is at least a bit unscrupulous in how it approaches interactions with PoB and the build code ecosystem. As a dev team we trust and interact regularly with the developers of the sites in the whitelist (admittedly not true for legacy pastebin clones, however) so we can respond to and fix issues if any crop up. I've always been cautious about how PoB interacts with websites that aren't pathofexile.com, and this is no exception. This would suddenly change that stance to interacting with every website without oversight. |
|
@LocalIdentity @Wires77
Exactly, this is why I think that removing this dependency on a third party web site MUST be implemented. This white-listed gatekeeping is crazy to me.
I'm not a web developer. And looking at this, I won't be back here, this is, again, just wow. |
|
The code atm litteraly trusts to whatever the pobin and others return, which is very unsafe imho. |

Fixes #9814.
Description of the problem being solved:
Every pob:// route today requires the build to live on a third-party paste site (pobb.in, maxroll, etc). Tools and scripts that already hold a build code locally have to upload it before they can offer a one-click "Open in PoB" link, which adds an external dependency, an HTTP roundtrip, and it seems unfair to me in general.
Steps taken to verify a working solution:
<a id="link" class="open" href="pob://code/some-build-code">name</a>Link to a build that showcases this PR:
Before screenshot:
After screenshot: