Opened 8 years ago

Closed 8 years ago

#9092 closed (fixed)

Validation of project and application names isn't thorough enough

Reported by: Tom Mortimer-Jones Owned by: nobody
Component: Core (Other) Version: 1.0
Severity: Keywords:
Cc: Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

As project and application names get used as a Python modules they have to follow the correct naming convention (see here). The current check allows for the name to start with a number which is not allowed.

Attachments (1)

9092.diff (903 bytes) - added by Tom Mortimer-Jones 8 years ago.

Download all attachments as: .zip

Change History (3)

Changed 8 years ago by Tom Mortimer-Jones

Attachment: 9092.diff added

comment:1 Changed 8 years ago by Ivan Giuliani

Component: UncategorizedCore framework
Has patch: set
Triage Stage: UnreviewedAccepted

Maybe something like "^[_a-zA-Z]\w*" could be more readable regexp.

comment:2 Changed 8 years ago by Adrian Holovaty

Resolution: fixed
Status: newclosed

(In [9043]) Fixed #9092 -- Improved validation of app/project names by startapp/startproject so that it doesn't allow names to start with a number.

Note: See TracTickets for help on using tickets.
Back to Top