summaryrefslogtreecommitdiff
path: root/lib/api/validations
Commit message (Collapse)AuthorAgeFilesLines
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2020-04-028-34/+161
|
* Add latest changes from gitlab-org/gitlab@masterGitLab Bot2019-09-131-0/+2
|
* Process workhorse accelerated wiki uploadsAlessio Caiazza2019-09-061-0/+20
| | | | | Wiki attachments can be workhorse accelerated. This commit is backward compatible with older workhorse
* Add support for using a Camo proxy serverBrett Walker2019-08-231-0/+22
| | | | | | User images and videos will get proxied through the Camo server in order to keep malicious sites from collecting the IP address of users.
* Prefer `flat_map` over `map` + `flatten`Peter Leitzen2019-07-261-1/+1
| | | | | Convert several occurrences of `map` + `flatten` to `flat_map` where applicable.
* Review updates and cleanupce-57402-add-issues-statistics-api-endpointsAlexandru Croitor2019-05-171-11/+7
| | | | | | | * Cleaned issues and issues_statistics docs * Renamed param with_labels_data to with_labels_details * Added spec for N+1 check when retrieving labels from issue * Refactoed CheckAssigneesCount validation class
* Add params validations and remove extra params supportAlexandru Croitor2019-05-151-0/+36
| | | | | | | | | Remove label_name and milestone_title params support Add mutually_exclusive validation for author_id and author_username Add mutually_exclusive validation for assignee_id and assignee_username Add validation to allow single value for asignee_username on CE Add separate issue_stats_params helper for statistics params and reuse in issues_params.
* Add array support for labelsAlexandru Croitor2019-03-061-0/+24
| | | | | * Support label parameter as comma separated and array of strings for merge requests and issues api endpoints
* Validate Wiki attachments are valid temporary filesStan Hu2018-10-231-0/+15
A malicious attacker could craft a request to read arbitrary files on the system. This change adds a Grape validation to ensure that the tempfile parameter delivered by the Rack multipart uploader is a Tempfile type to prevent users from being able to specify arbitrary filenames. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/53072