Ticket service issues lower-case ids (SCP-7)
The id a customer sees in replies now matches what forwarders and list servers deliver. Existing upper-case tickets still match case-insensitively. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Assistant: claude-code Assistant-Model: opus Assistant-Process: 252470@bnt-lap001 Assistant-Session: ad628c8f-4be2-4979-94c9-76c7ed6f8241
This commit is contained in:
parent
0f3a0da1c6
commit
f78939af5c
2 changed files with 13 additions and 3 deletions
|
|
@ -34,12 +34,16 @@ from mas_core.generator import resource_local_part
|
|||
|
||||
RESOURCE_TYPE = "ticket"
|
||||
INTAKE_TARGET = "ticket"
|
||||
_ALPHABET = "0123456789ABCDEFGHJKMNPQRSTVWXYZ" # Crockford base32, no I L O U
|
||||
_ALPHABET = "0123456789abcdefghjkmnpqrstvwxyz" # Crockford base32, no i l o u
|
||||
|
||||
|
||||
def default_ticket_id() -> str:
|
||||
"""Non-guessable-preferred, per the great-service statute."""
|
||||
return "GS-" + "".join(secrets.choice(_ALPHABET) for _ in range(10))
|
||||
"""Non-guessable-preferred, per the great-service statute.
|
||||
|
||||
Lower case, so the address a customer sees is the one forwarders and
|
||||
mailing lists deliver (spec 6.2, SCP-7).
|
||||
"""
|
||||
return "gs-" + "".join(secrets.choice(_ALPHABET) for _ in range(10))
|
||||
|
||||
|
||||
SCHEMA = """
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue