Commit 1b37ff7
authored
GeneXus compression module (#874)
* Compress EXO initial module outline
* Initial implementation of the compress method
* Initial decompress functionality implementation
* Add Compression data type
* All 4 compression and decompression methods working
* Refactor into compression package
* Logging and return values for better flow control
* Switch compression format type form enum to string
* Change parameter types to basic ones
* Various fixes
* Change junit version
* Fix error codes
* Correct parameters data types
* Expand error codes
* Better logging
* Remove unnecesary usage of List<File>
* Add jar support
* Add support for decompressing rar files
* Remove unused imports
* Merge nested ifs
* Change operations return type
* Fix method naming and logging
* Make attributes readonly
* Refactor compression classes to support error messages
* Add missing message and fix interface return type
* Refactor for better code quality
* Remove unused imports
* Improve error message for invalid compression format
* Refactor compression classes to use ArrayList instead of Vector
* Refactor compression interface to use ArrayList instead of Vector
* Switch from map to set of attributes
* Update gxcompress dependencies and refactor compression classes
* Remove unused imports
* Consider folder within files to compress for jar and zip formats
* Compression module simplification an improvements
* Prevent directory traversal attack
* Add check for DoS attack and clear error messages
* Fix compilation error
* Fix gz compression and decompression issues
* Remove unused imports
* Remove unused import and usage of deprecated method
* Prevent slips, traversals and bombs
* Add compression utils
* Fix wrong directory traversal and zip bomb checks
* Complete rewrite of security checks, read values from given configuration
* Fix clear method
* Remove not empty constructor
* Create gzip decompression directory if its not there
* Improvements and optimizations1 parent 2d6ec75 commit 1b37ff7
File tree
7 files changed
+1308
-8
lines changed- gxcompress
- src
- main/java/com/genexus/compression
- test/java/com/genexus/compression
7 files changed
+1308
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
Lines changed: 42 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
0 commit comments