Actions
Defect #1322
closedError on project selection with numeric (only) identifier.
Start date:
2008-05-29
Due date:
% Done:
0%
Estimated time:
Resolution:
Fixed
Affected version:
Description
Hi,
if an identifier is used which only contains numbers, then the selection of an project from the project list does not work because the projects-controller uses the identifier value as an id.
Error occurs in revision 0.7.1 (r1640)
In app/models/project.rb line 137, method self.find:
The param is matched this "/^\d*$/" regex. When it matches, then the param is used to search in the id. So numeric only identifiers do not work, because their value matches this regex.
The validation for the identifier field "/^[a-z0-9\-]*$/" should be extended to force a least one non-numeric character and the issue perhaps noted in the release-notes, as numeric-only identifiers already present in the db must be corrected manually.
Actions