Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
bf3d1900
Commit
bf3d1900
authored
Aug 16, 2018
by
Mario de la Ossa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backport of gitlab-org/gitlab-ee!6876
parent
e4e172a2
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
1 deletion
+25
-1
config/routes.rb
config/routes.rb
+7
-0
db/post_migrate/20180816193530_rename_login_root_namespaces.rb
...st_migrate/20180816193530_rename_login_root_namespaces.rb
+16
-0
db/schema.rb
db/schema.rb
+1
-1
lib/gitlab/path_regex.rb
lib/gitlab/path_regex.rb
+1
-0
No files found.
config/routes.rb
View file @
bf3d1900
...
@@ -27,6 +27,13 @@ Rails.application.routes.draw do
...
@@ -27,6 +27,13 @@ Rails.application.routes.draw do
authorizations:
'oauth/authorizations'
authorizations:
'oauth/authorizations'
end
end
# This is here so we can "reserve" the path for the Jira integration in GitLab EE
# Having a non-existent controller here does not affect the scope in any way since all possible routes
# get a 404 proc returned. It is written in this way to minimize merge conflicts with EE
scope
path:
'/login/oauth'
,
controller:
'oauth/jira/authorizations'
,
as: :oauth_jira
do
match
':action'
,
via:
[
:get
,
:post
],
to:
proc
{
[
404
,
{},
[
''
]]
}
end
use_doorkeeper_openid_connect
use_doorkeeper_openid_connect
# Autocomplete
# Autocomplete
...
...
db/post_migrate/20180816193530_rename_login_root_namespaces.rb
0 → 100644
View file @
bf3d1900
# frozen_string_literal: true
class
RenameLoginRootNamespaces
<
ActiveRecord
::
Migration
include
Gitlab
::
Database
::
MigrationHelpers
include
Gitlab
::
Database
::
RenameReservedPathsMigration
::
V1
DOWNTIME
=
false
# We're taking over the /login namespace as part of a fix for the Jira integration
def
up
rename_root_paths
'login'
end
def
down
revert_renames
end
end
db/schema.rb
View file @
bf3d1900
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
#
#
# It's strongly recommended that you check this file into your version control system.
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
201808
09195358
)
do
ActiveRecord
::
Schema
.
define
(
version:
201808
16193530
)
do
# These are extensions that must be enabled in order to support this database
# These are extensions that must be enabled in order to support this database
enable_extension
"plpgsql"
enable_extension
"plpgsql"
...
...
lib/gitlab/path_regex.rb
View file @
bf3d1900
...
@@ -40,6 +40,7 @@ module Gitlab
...
@@ -40,6 +40,7 @@ module Gitlab
invites
invites
jwt
jwt
koding
koding
login
notification_settings
notification_settings
oauth
oauth
profile
profile
...
...
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