You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Sharing: a guest who opens a second open link is asked for a name, then told it is taken #614
A guest joins thread A through an open link and gives a name, say "Bob". Later they open another open link, for thread B, in the same browser. The join page asks for a name again, and when they type "Bob" the server refuses it: "That name is already in use on this server."
Why
The join route (OpenLinkHttp.ts) reads the request's session only to turn away a member. A browser already signed in as a guest goes on as if it were new.
OpenLinks.join always calls createGuest, so a second link always means a second person. That person's name collides with the first.
Had Bob typed a different name, he would have become a second guest. Pairing replaces the browser's session cookie, so his browser would then lose thread A.
Each person can record only one link they joined through (j5_a2a_human_person.joined_open_link_id). That column feeds each link's "who joined through it" list, its 50-person cap and the "joined by link" tag on the People page.
Fix
Server: when a browser that already holds a guest session opens an open link, the link adds a View grant on its thread to that guest. No name is asked for, no new person is made and nothing is re-paired. A grant the guest already holds on that thread is never lowered: a Collaborate grant stays Collaborate.
Describe: for such a browser, the describe route says who it is joining as.
Join page: that browser sees "Join as Bob" and one button instead of the name form.
Joins table: a new table, one row per link per person, replaces joined_open_link_id. The link's list, its cap and the "joined by link" tag read from it, and existing values are migrated into it.
Other device: a device with no session still cannot be recognised. A name is not a credential, so it is still refused, but the message says to open the link on the device they joined with or to ask for a link for this device.
Definition: AC26 in docs/j5/product/features/shared-server.md is updated to cover a guest who already has a session.
Activity
fix(j5): a guest who opens a second open link joins as themselves (#615)