Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
9cc0ed2a
Commit
9cc0ed2a
authored
Feb 01, 2022
by
Max Woolf
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'sh-support-zip64' into 'master'
Enable Zip64 support See merge request gitlab-org/gitlab!79596
parents
b336d667
908ff65d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
config/initializers/rubyzip.rb
config/initializers/rubyzip.rb
+4
-0
spec/services/pages/zip_directory_service_spec.rb
spec/services/pages/zip_directory_service_spec.rb
+5
-1
No files found.
config/initializers/rubyzip.rb
0 → 100644
View file @
9cc0ed2a
# frozen_string_literal: true
#
# Zip64 is needed to support archives with more than 65535 entries.
Zip
.
write_zip64_support
=
true
spec/services/pages/zip_directory_service_spec.rb
View file @
9cc0ed2a
...
...
@@ -27,6 +27,10 @@ RSpec.describe Pages::ZipDirectoryService do
let
(
:archive
)
{
result
[
:archive_path
]
}
let
(
:entries_count
)
{
result
[
:entries_count
]
}
it
'returns true if ZIP64 is enabled'
do
expect
(
::
Zip
.
write_zip64_support
).
to
be
true
end
shared_examples
'handles invalid public directory'
do
it
'returns success'
do
expect
(
status
).
to
eq
(
:success
)
...
...
@@ -35,7 +39,7 @@ RSpec.describe Pages::ZipDirectoryService do
end
end
context
"when work direc
ot
ry doesn't exist"
do
context
"when work direc
to
ry doesn't exist"
do
let
(
:service_directory
)
{
"/tmp/not/existing/dir"
}
include_examples
'handles invalid public directory'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment