Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/shared
diff options
context:
space:
mode:
authorKamil TrzciƄski <ayufan@ayufan.eu>2020-10-27 06:49:07 +0300
committerVladimir Shushlin <vshushlin@gitlab.com>2020-10-27 06:49:07 +0300
commit5be346a94902c7147f3b1571e6ebb2c1f4e98eb8 (patch)
tree1e6328dd475c3578a3910181d6e2a26f20285bef /shared
parentb382faeec6491bb544d33549570610a476f597b7 (diff)
Properly handle processing failures with `5xx`
Prior to this change ALL processing failures unrelated to "file missing" would return `404`. This is inaccurate. Processing failures are failure of GitLab Pages and `500` should be returned in such cases.
Diffstat (limited to 'shared')
-rw-r--r--shared/lookups/zip-malformed.gitlab.io.json16
-rw-r--r--shared/lookups/zip-not-found.gitlab.io.json16
2 files changed, 32 insertions, 0 deletions
diff --git a/shared/lookups/zip-malformed.gitlab.io.json b/shared/lookups/zip-malformed.gitlab.io.json
new file mode 100644
index 00000000..37ad1ddd
--- /dev/null
+++ b/shared/lookups/zip-malformed.gitlab.io.json
@@ -0,0 +1,16 @@
+{
+ "certificate": "",
+ "key": "",
+ "lookup_paths": [
+ {
+ "access_control": false,
+ "https_only": false,
+ "prefix": "/",
+ "project_id": 123,
+ "source": {
+ "path": "http://127.0.0.1:37003/malformed.zip",
+ "type": "zip"
+ }
+ }
+ ]
+}
diff --git a/shared/lookups/zip-not-found.gitlab.io.json b/shared/lookups/zip-not-found.gitlab.io.json
new file mode 100644
index 00000000..94de4a90
--- /dev/null
+++ b/shared/lookups/zip-not-found.gitlab.io.json
@@ -0,0 +1,16 @@
+{
+ "certificate": "",
+ "key": "",
+ "lookup_paths": [
+ {
+ "access_control": false,
+ "https_only": false,
+ "prefix": "/",
+ "project_id": 123,
+ "source": {
+ "path": "http://127.0.0.1:37003/not-found.zip",
+ "type": "zip"
+ }
+ }
+ ]
+}