BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
b32176bc
Commit
b32176bc
authored
Dec 28, 2016
by
Sean McGivern
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dz-improve-admin-group-routing' into 'master'
Fix 500 error when visit group from admin area if group name contains dot See merge request !8342
parents
0d930161
7f1d9548
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
3 deletions
+13
-3
dz-improve-admin-group-routing.yml
changelogs/unreleased/dz-improve-admin-group-routing.yml
+4
-0
admin.rb
config/routes/admin.rb
+1
-1
admin_routing_spec.rb
spec/routing/admin_routing_spec.rb
+8
-2
No files found.
changelogs/unreleased/dz-improve-admin-group-routing.yml
0 → 100644
View file @
b32176bc
---
title
:
Fix 500 error when visit group from admin area if group name contains dot
merge_request
:
author
:
config/routes/admin.rb
View file @
b32176bc
...
...
@@ -32,7 +32,7 @@ namespace :admin do
scope
(
path:
'groups/*id'
,
controller: :groups
,
constraints:
{
id:
Gitlab
::
Regex
.
namespace_route_regex
})
do
constraints:
{
id:
Gitlab
::
Regex
.
namespace_route_regex
,
format:
/(html|json|atom)/
})
do
scope
(
as: :group
)
do
put
:members_update
...
...
spec/routing/admin_routing_spec.rb
View file @
b32176bc
...
...
@@ -122,12 +122,18 @@ describe Admin::HealthCheckController, "routing" do
end
describe
Admin
::
GroupsController
,
"routing"
do
let
(
:name
)
{
'complex.group-namegit'
}
it
"to #index"
do
expect
(
get
(
"/admin/groups"
)).
to
route_to
(
'admin/groups#index'
)
end
it
"to #show"
do
expect
(
get
(
"/admin/groups/gitlab"
)).
to
route_to
(
'admin/groups#show'
,
id:
'gitlab'
)
expect
(
get
(
"/admin/groups/gitlab/subgroup"
)).
to
route_to
(
'admin/groups#show'
,
id:
'gitlab/subgroup'
)
expect
(
get
(
"/admin/groups/
#{
name
}
"
)).
to
route_to
(
'admin/groups#show'
,
id:
name
)
expect
(
get
(
"/admin/groups/
#{
name
}
/subgroup"
)).
to
route_to
(
'admin/groups#show'
,
id:
"
#{
name
}
/subgroup"
)
end
it
"to #edit"
do
expect
(
get
(
"/admin/groups/
#{
name
}
/edit"
)).
to
route_to
(
'admin/groups#edit'
,
id:
name
)
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment