Invitation accept page shows no target line for a legacy workspace label when no description is resolved
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Domain
- authentication, backend
Research direction
Read the accept route in server/orcaster_server/auth/router.py and the template in server/orcaster_server/auth/templates/accept_invite.html, then review the existing cases in server/tests/test_invitation_join.py:462-475. Add coverage for both unresolved-description paths and check that the raw legacy label never appears; done when both render a fallback line while the resolved-description case still passes. Add the required Unreleased CHANGELOG entry.
Written by the indexing model from the issue text.
Description
Problem
The accept page should always tell the visitor what the invitation is for. If it cannot name the workspace, it should still show a safe and true line. The raw workspace:<uuid> label must not be shown.
For an older invitation whose label is workspace:<uuid>, the router clears the label without checking whether a description was resolved (server/orcaster_server/auth/router.py:232-235). The template shows the description first, then the label, then nothing (server/orcaster_server/auth/templates/accept_invite.html:16-17). If both are empty, the page has no invite-target line.
Steps to reproduce
- Have an invitation with label
workspace:<uuid>. - Make the description unresolved. Any of these does it:
AuthConfig.describe_invitationisNone(server/orcaster_server/auth/config.py:79, the default); the callback returnsNonebecause the payload has noworkspace_id, has an unknown role, or the workspace does not exist (server/orcaster_server/workspaces/seam.py:45-80). - Open
GET /auth/accept/{token}. - The page answers 200 with the title, the name field and the passkey button, but does not say which workspace or role the visitor is joining.
The existing test covers only the case where a description is resolved (server/tests/test_invitation_join.py:462-475).
Proposed change
Hide the placeholder label only when a description was resolved. When no description exists, show a neutral line, for example Invitation for: an invitation (exact wording to be decided in review). The raw workspace:<uuid> string is never shown. Withheld and expired invitations keep their current behavior.
Acceptance criteria
- A GET test with a legacy
workspace:<uuid>label and anAuthConfigwithoutdescribe_invitationreturns 200 and renders the fallback line. - A GET test with a legacy label and a callback that returns
Nonereturns 200 and renders the same fallback. - When a description is resolved, the page still shows the description and not the label (existing test stays green).
- The raw
workspace:<uuid>string is not in the response body in any of these cases. - Existing invitations and flows keep working without config changes.
- CHANGELOG entry under Unreleased.
Open question
What is the exact neutral wording?
- Dominant language
- Python
- Stars
- 0
- Forks
- 0
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 10
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from AInvirion/orcaster
-
enhancement P3 server
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Maintainers usually reply within 1 day
-
enhancement good first issue P3 server
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
bug P2 server
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
Maintainers usually reply within 1 day
-
enhancement P3 server
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
-
bug client P3
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
All issues in AInvirion/orcaster
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
daniel-ospina/tortoise#15308 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
difficulty:easy prio:low type:bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
NatronGitHub/Natron#2405 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Jstar269/nakagawa-recomp#3746 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day