Commit Graph

36 Commits

Author SHA1 Message Date
Dmitriy Zaporozhets cd4db7b417
Reserve few project and nested group paths
That have wildcard routes associated and not reserved yet: artifacts,
graphs, badges and refs

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2017-03-13 15:47:24 +02:00
Dmitriy Zaporozhets e6cc7a0a38
Restrict nested group names to prevent ambiguous routes
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2017-03-07 09:43:35 +02:00
Lin Jen-Shin 728b0a5fe0 Introduce DurationValidator, feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/9219#note_24032923
2017-02-24 17:28:24 +08:00
Douwe Maan b7d8df503c Enable Style/MutableConstant 2017-02-23 09:31:56 -06:00
Kamil Trzcinski 63eb415610 Fix certificate validators 2017-01-31 22:53:58 +00:00
Kamil Trzcinski 930a7030b5 Implement proper verification of certificate's public_key against the private_key 2017-01-31 22:53:57 +00:00
Kamil Trzcinski 5f7257c27d Initial work on GitLab Pages update 2017-01-31 22:53:57 +00:00
Dmitriy Zaporozhets 3551a625a8
Whitelist next project names: assets, profile, public
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2017-01-06 11:14:17 +02:00
Dmitriy Zaporozhets 1c2d9015da
Whitelist next project names: notes, services
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-12-21 21:08:55 +02:00
Dmitriy Zaporozhets e1bf40e293
Whitelist next project names: help, ci, admin, search
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-12-21 16:50:38 +02:00
Dmitriy Zaporozhets 8b92e9c08b
Allow projects with dashboard as path
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-12-21 13:00:10 +02:00
Dmitriy Zaporozhets 6683fdcfb0
Add nested groups support to the routing
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2016-11-23 14:08:36 +02:00
Nick Thomas ef696f592f Add `robots.txt` to the list of reserved namespaces 2016-10-11 02:58:26 +01:00
Robert Speicher d75a8297b8 Add '.well-known' to the list of reserved namespaces
See https://gitlab.com/gitlab-org/gitlab-ce/issues/22759
2016-09-29 10:36:38 +02:00
James Lopez 54a50bf81d refactor url validator to use sanitizer for check 2016-07-01 09:02:45 +02:00
James Lopez ef5713546b few more changes from suggestions 2016-06-30 17:22:56 +02:00
James Lopez 5b893d603d few changes based on feedback 2016-06-30 13:17:37 +02:00
James Lopez 8076d38a14 added more info on how addressable URI differs from what we use in UrlValidator 2016-06-24 11:35:32 +02:00
James Lopez 58c49966fa updated validator based on feedback 2016-06-23 17:18:02 +02:00
James Lopez 4273e07e00 fix comment 2016-06-20 17:25:51 +02:00
James Lopez 6d763831d0 fixed a few MySQL issues and added changelog 2016-06-20 17:20:53 +02:00
James Lopez 896e09d055 started working on a migration for projects that have current import_url issues 2016-06-20 15:31:03 +02:00
James Lopez a5abec905f fix addressable url validator 2016-06-20 11:34:34 +02:00
James Lopez 0e222f02d8 fixing URL validation for import_url on projects 2016-06-17 15:09:39 +02:00
evuez 4d0e2979b9 Allow webhooks URL to have leading and trailing spaces 2016-02-26 14:34:06 -05:00
Rémy Coutable b3635ee46a Re-add EmailValidator to avoid the repetition of format: { with: Devise.email_regexp } 2016-02-09 18:15:35 +01:00
Rémy Coutable b34963bc12 Validate email addresses using Devise.email_regexp
Also:
- Get rid of legacy :strict_mode
- Get rid of custom :email validator
- Add some shared examples to spec emails validation
2016-02-09 18:15:35 +01:00
Robert Schilling c3c0dda3f5 Blacklist 'new' 2016-01-08 10:19:22 +01:00
Robert Speicher 2379c8beea Inline Gitlab::Blacklist in NamespaceValidator 2015-12-07 16:57:26 -05:00
Robert Speicher 175f482c3c Add custom NamespaceNameValidator 2015-12-07 16:57:26 -05:00
Robert Speicher 9321d382bd Add custom NamespaceValidator 2015-12-07 16:57:26 -05:00
Robert Speicher ad6a771dc6 Add custom LineCodeValidator 2015-12-07 16:57:26 -05:00
Robert Speicher 96e51a0304 Minor EmailValidator refactor 2015-12-07 16:57:26 -05:00
Robert Speicher e48391b813 Add custom ColorValidator 2015-12-07 16:57:26 -05:00
Robert Speicher b3200c8c44 Move EmailValidator to app/validators 2015-12-07 16:57:26 -05:00
Robert Speicher d5ea93469b Add custom UrlValidator 2015-12-07 16:57:26 -05:00