Code

Opened 6 years ago

Closed 6 years ago

#9092 closed (fixed)

Validation of project and application names isn't thorough enough

Reported by: morty 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 morty 6 years ago.

Download all attachments as: .zip

Change History (3)

Changed 6 years ago by morty

comment:1 Changed 6 years ago by kratorius

  • Component changed from Uncategorized to Core framework
  • Has patch set
  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Triage Stage changed from Unreviewed to Accepted

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

comment:2 Changed 6 years ago by adrian

  • Resolution set to fixed
  • Status changed from new to closed

(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.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.