summaryrefslogtreecommitdiff
path: root/app/validators/project_path_validator.rb
Commit message (Collapse)AuthorAgeFilesLines
* Enable frozen string in apps/validators/*.rbgfyoung2018-06-271-0/+2
| | | | Partially addresses #47424.
* Validate User username only on Namespace, and bubble up appropriatelyDouwe Maan2018-02-061-4/+0
|
* Reallow project paths ending in periodsdm-reallow-project-path-ending-in-periodDouwe Maan2017-11-061-0/+19
|
* Use the namespace validator for validating all pathsBob Van Landuyt2017-05-011-27/+0
| | | | | Since the namespacevalidator now knows the difference between a top-level and another path, this could all be handled there.
* Streamline the path validation in groups & projectsBob Van Landuyt2017-05-011-15/+7
| | | | | | | | | | | | `Project` uses `ProjectPathValidator` which is now a `NamespaceValidator` that skips the format validation. That way we're sure we are using the same collection of reserved paths. I updated the path constraints to reflect the changes: We now allow some values that are only used on a top level namespace as a name for a nested group/project.
* Restrict nested group names to prevent ambiguous routesdz-nested-groups-restrictionsDmitriy Zaporozhets2017-03-071-4/+2
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Whitelist next project names: assets, profile, publicDmitriy Zaporozhets2017-01-061-1/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Whitelist next project names: notes, servicesdz-whitelist-more-project-names-2Dmitriy Zaporozhets2016-12-211-1/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Whitelist next project names: help, ci, admin, searchdz-whitelist-more-project-namesDmitriy Zaporozhets2016-12-211-1/+1
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Allow projects with dashboard as pathDmitriy Zaporozhets2016-12-211-1/+2
| | | | Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
* Add nested groups support to the routingdz-allow-nested-group-routingDmitriy Zaporozhets2016-11-231-0/+36
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>