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

Fixes #3492 joining after document is renamed inside editor #3493

Merged

Conversation

eszkadev
Copy link
Contributor

Bug:

  1. Open document
  2. Rename in Collabora Online using input in the title bar
  3. In the new tab open the same document from file picker in NC Result: 2 sessions are in different instances of the same document

getCallbackBaseUrl() puts "/" at the end, but WOPISrc was adding additional one:
const wopiurl = getCallbackBaseUrl() + '/ ...

Then reconnected session after rename had single "/index.php" but new session used "//index.php" what caused that COOL server didn't consider both as the same identifier

src/helpers/url.js Outdated Show resolved Hide resolved
Bug:
1. Open document
2. Rename in Collabora Online using input in the title bar
3. In the new tab open the same document from file picker in NC
Result: 2 sessions are in different instances of the same document

getCallbackBaseUrl() puts "/" at the end, but WOPISrc was adding
additional one:
const wopiurl = getCallbackBaseUrl() + '/ ...

Then reconnected session after rename had single "/index.php"
but new session used "//index.php" what caused that COOL server
didn't consider both as the same identifier

Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
@eszkadev eszkadev force-pushed the private/eszkadev/fix-join-after-rename branch from 4a5828b to eed26e3 Compare February 22, 2024 17:41
@juliushaertl juliushaertl merged commit e40a0a0 into nextcloud:main Feb 26, 2024
44 checks passed
@juliushaertl juliushaertl added bug Something isn't working 3. to review Ready to be reviewed labels Feb 26, 2024
@juliushaertl
Copy link
Member

/backport to stable28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Ready to be reviewed bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants