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

Fix extended hash in exported url #7280

Draft
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

sida-wang
Copy link
Contributor

@sida-wang sida-wang commented Jan 22, 2024

Fixes #6736 .

Description of the problem being solved:

Currently the passive URL generated during export is different to the one from the official site.
This is because PoB generates the extended hashes using by converting an internal nodeId and doesn't sort the hashes before encoding.
This PR aligns the extended hashes with what is exported from the official site, as well as ensuring the same sorting of the hashes to generate the same URL as the official site.

Whats changed?

  • The internal nodeId for cluster nodes has been updated to include 2 bits which determine the type of socket the cluster jewel is a part of. This will be 0 if the node belongs to a cluster jewel socketed into a large cluster socket, 1 if socketed into a medium cluster socket and 2 if socketed into a small cluster socket.
  • This nodeId also includes a new bit flag to indicate if it's using the new version to allow for backwards compatibility. This means that previously saved builds will still load correctly.
  • Added sorting of hashes in PassiveSpecClass:EncodeURL()

Steps taken to verify a working solution:

  • Will test further before unmarking as draft, has worked so far with the handful of builds that I've tested.

@sida-wang sida-wang added technical Hidden from release notes bug: behaviour Behavioral differences labels Jan 22, 2024
- Add bit flag to indicate which version of clusterNodeIds the build is using
- Add logic to accomodate previous clusterNodeIds for backwards compatibility
- Sort hashes before generating the URL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug: behaviour Behavioral differences technical Hidden from release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PoB uses different extended hashes than official site
1 participant