Closed
Description
Steps To Reproduce
Steps to Reproduce (via existing login item):
- Open an existing login item via the web app or browser extension.
- Click "Edit".
- Scroll to the Auto-fill options section.
- In the Website (URI) field, enter a URL longer than 255 characters.
- Click "Save".
- Reopen the item by clicking "Edit" again.
- Launch the Username Generator tool.
- Select the radio buttons for both "Username" and "Forwarded email alias".
- From the Service dropdown, choose "Firefox Relay".
- Provide a valid Firefox Relay API Access Token in the appropriate field.
- Click "Regenerate username".
Alternative Steps (via new login item creation):
- Navigate to a website with a long URL (e.g., a Shopify auth link with redirects exceeding 255 characters).
- Click "New Item" from the extension.
- Open the Username Generator tool.
- Select "Username" and "Forwarded email alias".
- Select "Firefox Relay" in the Service dropdown.
- Enter a valid Firefox Relay API Access Token.
- Click "Regenerate username".
Expected Result
A new, valid Firefox Relay email alias is generated and displayed, correctly linked to the user's Firefox Relay account.
Actual Result
The username generator fails to generate an alias. Instead, a toast notification appears with the message:
"Unknown Firefox Relay error occurred."
Screenshots or Videos
Additional Context
Additional Context from Chrome Developer Tools
The issue stems from server-side validation constraints in the Firefox Relay API. Specifically:
generated_for
field is limited to 255 charactersdescription
field is limited to 64 characters
Example 1 – description
too long:
Request payload:
{
"enabled": true,
"generated_for": "https://www.maxgaming.gg/cgi-bin/ibutik/AIR_ibutik.fcgi?funk=bestall_steg1#",
"description": "Website: https://www.maxgaming.gg/cgi-bin/ibutik/AIR_ibutik.fcgi?funk=bestall_steg1#. Generated by Bitwarden."
}
Response:
{
"description": [
"Ensure this field has no more than 64 characters."
]
}
Example 2 – generated_for
too long:
Request payload:
{
"enabled": true,
"generated_for": "https://www.maxgaming.gg/cgi-bin/ibutik/asdaasddsaasddasasddasasdasdasddasasddasasgdfasghdfashgdfahfsdhgasfhdfashfdhasfdhagsfdhgasfdhasgfdhgafdhfashdfashgdfhafsdhfasdhfasdfhafdhagsfdhafshdfahsdfhasfdhasfdhasfdhfahsdhasgfdkjhasdkhjgasjghdsaghjdasgasdjhgasdjhgasdhjgasdjghasd",
"description": "Website: https://www.maxgaming.gg. Generated by Bitwarden."
}
Response:
{
"generated_for": [
"Ensure this field has no more than 255 characters."
]
}
Operating System
macOS
Operating System Version
15.2 (24C101)
Web Browser
Chrome
Browser Version
134.0.6998.89
Build Version
Version: 2025.2.2 SDK: 'main (6008e90)' Server version: 2025.3.3
Issue Tracking Info
- I understand that work is tracked outside of Github. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.