You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
expect{subject.extract(source,target)}.toraise_error(LogStash::CompressError,/Refusing to extract file to unsafe path.*Files may not traverse with `..`/)
220
231
end
221
232
222
-
it"extracts a tar.gz containing a symlink and creates the symlink"do
Copy file name to clipboardExpand all lines: x-pack/spec/geoip_database_management/fixtures/README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
## Recreating `sample_with_symlink.tgz`
4
4
5
-
This archive is the same as `sample.tgz` plus a symbolic link `GeoLite2-City-alias.mmdb` → `GeoLite2-City.mmdb` at the archive root. Run from this directory (Unix/macOS):
5
+
This archive is the same as `sample.tgz` plus a symbolic link `GeoLite2-City-alias.mmdb` → `GeoLite2-City.mmdb` at the archive root. `LogStash::Util::Tar.extract` rejects symlink entries, so this fixture is only for specs that assert that behavior. Run from this directory (Unix/macOS):
6
6
7
7
```bash
8
8
cd"$(dirname "$0")"# or: cd x-pack/spec/geoip_database_management/fixtures
0 commit comments