summaryrefslogtreecommitdiff
path: root/spec/validators
Commit message (Collapse)AuthorAgeFilesLines
* Ensure all project factories use `:repository` trait or `:empty_project`rs-empty_project-cleanupRobert Speicher2017-08-011-1/+1
|
* Rebuild the dynamic path before validating itbvl-validate-path-updateBob Van Landuyt2017-06-211-0/+9
| | | | | Otherwise we won't validate updates to the path. Allowing users to change the path to something that's not allowed.
* Avoid crash when trying to parse string with invalid UTF-8 sequenceBob Van Landuyt2017-05-301-0/+22
|
* Revert "Remove changes that are not absolutely necessary"Douwe Maan2017-05-241-7/+7
| | | This reverts commit b0498c176fa134761d899c9b369be12f1ca789c5
* Remove changes that are not absolutely necessarydm-fix-routesDouwe Maan2017-05-231-7/+7
|
* Fix ambiguous routing issues by teaching router about reserved wordsDouwe Maan2017-05-231-225/+25
|
* Add a better error message when a certain path is missingBob Van Landuyt2017-05-021-3/+34
|
* Update path validation & specsBob Van Landuyt2017-05-021-3/+40
|
* Reuse Gitlab::Regex.full_namespace_regex in the DynamicPathValidatorBob Van Landuyt2017-05-021-1/+10
|
* Reject group-routes as names of child namespacesBob Van Landuyt2017-05-011-25/+51
|
* Reject paths following namespace for paths including 2 `*`Bob Van Landuyt2017-05-011-12/+14
| | | | | Reject the part following `/*namespace_id/:project_id` for paths containing 2 wildcard parameters
* Use `%r{}` regexes to avoid having to escape `/`Bob Van Landuyt2017-05-011-5/+5
|
* The dynamic path validator can block out partial pathsBob Van Landuyt2017-05-011-60/+80
| | | | So we can block `objects` only when it is contained in `info/lfs` or `gitlab-lfs`
* Make path validation case-insensitiveBob Van Landuyt2017-05-011-1/+7
|
* Rename `NamespaceValidator` to `DynamicPathValidator`Bob Van Landuyt2017-05-011-1/+1
| | | | This reflects better that it validates paths instead of a namespace model
* Split off validating full pathsBob Van Landuyt2017-05-011-0/+20
| | | | | The first part of a full path needs to be validated as a `top_level` while the rest need to be validated as `wildcard`
* Improve detection of reserved words from routesBob Van Landuyt2017-05-011-14/+67
|
* Streamline the path validation in groups & projectsBob Van Landuyt2017-05-011-0/+33
| | | | | | | | | | | | `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.
* Add forbidden paths to the namespace validatorBob Van Landuyt2017-05-011-0/+29