Commit 0c4e9cf
committed
fix(wopi): stable guest UserId and correct IsAnonymousUser for named guests
Two issues prevented cursor presence from working for named public link guests:
1. Guest UserId was randomly generated on every CheckFileInfo call. The WOPI
spec requires UserId to be stable per user session. Use a deterministic
hash of the WOPI token instead so the same guest retains the same identity
for the duration of the session.
2. IsAnonymousUser was unconditionally set to true for all public link users,
even when the guest had explicitly entered a display name. Collabora treats
IsAnonymousUser=true as a privacy signal and hides the cursor from other
editors. Only set the flag when the guest has no display name (truly
anonymous), so named guests have visible cursors in collaborative sessions.1 parent 3222278 commit 0c4e9cf
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
296 | | - | |
| 296 | + | |
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
| |||
485 | 485 | | |
486 | 486 | | |
487 | 487 | | |
488 | | - | |
| 488 | + | |
489 | 489 | | |
490 | 490 | | |
491 | 491 | | |
| |||
0 commit comments