Defect #6253

Allowing dot in project identifier

Added by Ehsan Afzali over 7 years ago. Updated about 7 years ago.

Status:ClosedStart date:2010-08-31
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-
Resolution:Wont fix Affected version:

Description

I wanted to know why is dot restricted in project identifier field. Here in our company we use dot syntax for our projects identification and repository names and because your auto repository creation uses project identifier as repository name, it becomes an issue for us.


Related issues

Related to Redmine - Feature #7493: Allowing underline "_" in project identifier Closed 2011-01-30
Related to Redmine - Feature #1363: Allow underscores in project identifiers Closed 2008-06-03

History

#1 Updated by Eric Davis over 7 years ago

I think dot should be allowed. Anyone have a reason why allowing dot could be bad?

#2 Updated by Ehsan Afzali about 7 years ago

  • Assignee set to Eric Davis

I think no one has any reason! Could please handle this Eric? theres no activies on this issue about a month.

#3 Updated by Felix Schäfer about 7 years ago

Eric Davis wrote:

Anyone have a reason why allowing dot could be bad?

I can think of nothing.

#4 Updated by Eric Davis about 7 years ago

  • Status changed from New to Closed
  • Assignee deleted (Eric Davis)
  • Resolution set to Wont fix

Sorry, it turns out this won't work due to the routing. Example, identifier - "test.123" gets this error:

ActionController::RoutingError (No route matches "/projects/settings/test.123" with {:method=>:get}):

123 is being used as the format option, which is invalid.

#5 Updated by Toshi MARUYAMA about 7 years ago

Please see a following link.
Getting around dots in “pretty urls”
http://stackoverflow.com/questions/1383950
Redmine use it at source:tags/1.0.2/config/routes.rb#L261

#6 Updated by Ehsan Afzali about 7 years ago

  • Status changed from Closed to Reopened
  • Assignee set to Eric Davis

Toshi MARUYAMA wrote:

Please see a following link.
Getting around dots in “pretty urls”
http://stackoverflow.com/questions/1383950
Redmine use it at source:tags/1.0.2/config/routes.rb#L261

This how you handle the repository explorer because the folders in repository may contains dot

#7 Updated by Eric Davis about 7 years ago

  • Status changed from Reopened to Closed
  • Assignee deleted (Eric Davis)

Ehsan Afzali wrote:

This how you handle the repository explorer because the folders in repository may contains dot

The repository view is different than the projects because projects uses the format option as part of it's rest API (format = xml for "project.xml). If someone wants to submit a patch for this that includes full integration tests for browsing projects with a dot identifier (including different formats for the REST API), then we can see about including it.

Also available in: Atom PDF