diff options
author | Jaime Martinez <jmartinez@gitlab.com> | 2020-09-09 09:23:02 +0300 |
---|---|---|
committer | Vladimir Shushlin <v.shushlin@gmail.com> | 2020-09-21 13:53:18 +0300 |
commit | e0dc0e38b1ca181caa2e85df7561da36aef8054e (patch) | |
tree | 62f90b1cdc41917f51e1195dfffc051d676ed5ed /shared | |
parent | b58d528f947b9f5440e163386a49f4d581290982 (diff) |
Add zip package that implements vfs.Root
Adds a zip package capable of reading zip files from an
httprange.Resource. It reads archive file contents into memory per
archive that is requested from the vfs.Root.
WIP: add simple test for archive reader
WIP: fix build
WIP: update archive test
WIP: adding tests for archive
WIP: print more info
WIP: update zip file correct symlink
WIP: use correct file
Add bad symlink file to zip
Update handling long symlinks
update documentation and reorg code
fix up stuff
Diffstat (limited to 'shared')
9 files changed, 24 insertions, 0 deletions
diff --git a/shared/lookups/zip.gitlab.io.json b/shared/lookups/zip.gitlab.io.json new file mode 100644 index 00000000..7fb80ec4 --- /dev/null +++ b/shared/lookups/zip.gitlab.io.json @@ -0,0 +1,16 @@ +{ + "certificate": "", + "key": "", + "lookup_paths": [ + { + "access_control": false, + "https_only": false, + "prefix": "/project/", + "project_id": 123, + "source": { + "path": "group/zip.gitlab.io/public.zip", + "type": "zip" + } + } + ] +} diff --git a/shared/pages/group/zip.gitlab.io/public.zip b/shared/pages/group/zip.gitlab.io/public.zip Binary files differnew file mode 100644 index 00000000..f1278bce --- /dev/null +++ b/shared/pages/group/zip.gitlab.io/public.zip diff --git a/shared/pages/group/zip.gitlab.io/public/404.html b/shared/pages/group/zip.gitlab.io/public/404.html new file mode 100644 index 00000000..66efad48 --- /dev/null +++ b/shared/pages/group/zip.gitlab.io/public/404.html @@ -0,0 +1 @@ +zip.gitlab.io/project/404.html diff --git a/shared/pages/group/zip.gitlab.io/public/bad_symlink.html b/shared/pages/group/zip.gitlab.io/public/bad_symlink.html new file mode 120000 index 00000000..8b825a3c --- /dev/null +++ b/shared/pages/group/zip.gitlab.io/public/bad_symlink.html @@ -0,0 +1 @@ +subdir/2bp3Qzs9CCW7cGnxhghdavZ2bJDTzvu2mrj6O8Yqjm3YMRozRZULxBBKzJXCK16GlsvO1GlbCyONf2LTCndJU9cIr5T3PLDN7XnfG00lEmf9DWHPXiAbbi0v8ioSjnoTqdyjELVKuhsGRGxeV9RptLMyGnbpJx1w2uECiUQSHrRVQNuq2xoHLlk30UAmis1EhGXP5kKprzHxuavsKMdT4XRP0d79tie4tjqtfRsP4y60hmNS1vSujrxzhDa
\ No newline at end of file diff --git a/shared/pages/group/zip.gitlab.io/public/index.html b/shared/pages/group/zip.gitlab.io/public/index.html new file mode 100644 index 00000000..9fc61629 --- /dev/null +++ b/shared/pages/group/zip.gitlab.io/public/index.html @@ -0,0 +1 @@ +zip.gitlab.io/project/index.html diff --git a/shared/pages/group/zip.gitlab.io/public/subdir/2bp3Qzs9CCW7cGnxhghdavZ2bJDTzvu2mrj6O8Yqjm3YMRozRZULxBBKzJXCK16GlsvO1GlbCyONf2LTCndJU9cIr5T3PLDN7XnfG00lEmf9DWHPXiAbbi0v8ioSjnoTqdyjELVKuhsGRGxeV9RptLMyGnbpJx1w2uECiUQSHrRVQNuq2xoHLlk30UAmis1EhGXP5kKprzHxuavsKMdT4XRP0d79tie4tjqtfRsP4y60hmNS1vSujrxzhDa b/shared/pages/group/zip.gitlab.io/public/subdir/2bp3Qzs9CCW7cGnxhghdavZ2bJDTzvu2mrj6O8Yqjm3YMRozRZULxBBKzJXCK16GlsvO1GlbCyONf2LTCndJU9cIr5T3PLDN7XnfG00lEmf9DWHPXiAbbi0v8ioSjnoTqdyjELVKuhsGRGxeV9RptLMyGnbpJx1w2uECiUQSHrRVQNuq2xoHLlk30UAmis1EhGXP5kKprzHxuavsKMdT4XRP0d79tie4tjqtfRsP4y60hmNS1vSujrxzhDa new file mode 100644 index 00000000..7f4b4f34 --- /dev/null +++ b/shared/pages/group/zip.gitlab.io/public/subdir/2bp3Qzs9CCW7cGnxhghdavZ2bJDTzvu2mrj6O8Yqjm3YMRozRZULxBBKzJXCK16GlsvO1GlbCyONf2LTCndJU9cIr5T3PLDN7XnfG00lEmf9DWHPXiAbbi0v8ioSjnoTqdyjELVKuhsGRGxeV9RptLMyGnbpJx1w2uECiUQSHrRVQNuq2xoHLlk30UAmis1EhGXP5kKprzHxuavsKMdT4XRP0d79tie4tjqtfRsP4y60hmNS1vSujrxzhDa @@ -0,0 +1,2 @@ +verylongfile + diff --git a/shared/pages/group/zip.gitlab.io/public/subdir/hello.html b/shared/pages/group/zip.gitlab.io/public/subdir/hello.html new file mode 100644 index 00000000..8546de43 --- /dev/null +++ b/shared/pages/group/zip.gitlab.io/public/subdir/hello.html @@ -0,0 +1 @@ +zip.gitlab.io/project/subdir/hello.html diff --git a/shared/pages/group/zip.gitlab.io/public/subdir/linked.html b/shared/pages/group/zip.gitlab.io/public/subdir/linked.html new file mode 100644 index 00000000..99ea45e6 --- /dev/null +++ b/shared/pages/group/zip.gitlab.io/public/subdir/linked.html @@ -0,0 +1 @@ +symlink.html->subdir/linked.html diff --git a/shared/pages/group/zip.gitlab.io/public/symlink.html b/shared/pages/group/zip.gitlab.io/public/symlink.html new file mode 120000 index 00000000..1a4698ee --- /dev/null +++ b/shared/pages/group/zip.gitlab.io/public/symlink.html @@ -0,0 +1 @@ +subdir/linked.html
\ No newline at end of file |