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

Updates toolsocket to latest version in objectDefaultFiles and fixes … #986

Merged
merged 1 commit into from
Feb 16, 2024

Conversation

dangond-ptc
Copy link
Contributor

…toolsocket loading in object.js when behind cloud proxy

@dangond-ptc dangond-ptc requested a review from benptc February 16, 2024 15:52
Comment on lines +211 to +213
const pathParts = window.location.pathname.split('/');
const sourcePathname = pathParts.includes('frames') ? pathParts.slice(0, pathParts.indexOf('frames')).join('/') : window.location.pathname;
url = window.location.origin + sourcePathname;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just out of curiosity, what is the motivation for this change?

I did a quick test and (assuming I ran this correctly) it seems like the old code results in a url like:
https://toolboxedge.net:443/n/OBxTG9K1AY313tXA0Fgl/i/lZjQV2rqp26mnhM/s/CxVKP2NDVV7HRf2AmR9qZOuHlHxrPxXQQvDjsiFN

while the new code produces one like:
https://toolboxedge.net/n/OBxTG9K1AY313tXA0Fgl/i/lZjQV2rqp26mnhM/s/CxVKP2NDVV7HRf2AmR9qZOuHlHxrPxXQQvDjsiFN

Does the :443 in the old version cause issues with the cloud proxy?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When connected to a cloud-proxy running locally, the old code produces a URL like http://10.0.0.237/n/1vfg7mfUcG2A5tPK1wzT/i/H5aCIOszh0U2iMgv/s/mYMKKwgpTLnlVAzlGaIO0nmvoBjIwRNaq2ISdyHi/objectDefaultFiles/toolsocket.js, but it should be http://10.0.0.237:8000/n/1vfg7mfUcG2A5tPK1wzT/i/H5aCIOszh0U2iMgv/s/mYMKKwgpTLnlVAzlGaIO0nmvoBjIwRNaq2ISdyHi/objectDefaultFiles/toolsocket.js

@dangond-ptc
Copy link
Contributor Author

To clarify, fixes issues with toolsocket loading in object.js when behind a local cloud-proxy in development

@dangond-ptc dangond-ptc merged commit 3d236dc into main Feb 16, 2024
2 checks passed
@dangond-ptc dangond-ptc deleted the toolsocketUpdates branch February 16, 2024 16:33
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

Successfully merging this pull request may close these issues.

2 participants