Skip to content

COMPRESS-407: Allow use of invalid record sizes if a system property is set.#42

Closed
sesuncedu wants to merge 2 commits into
apache:masterfrom
sesuncedu:COMPRESS-407-SYSTEM-PROPERTY
Closed

COMPRESS-407: Allow use of invalid record sizes if a system property is set.#42
sesuncedu wants to merge 2 commits into
apache:masterfrom
sesuncedu:COMPRESS-407-SYSTEM-PROPERTY

Conversation

@sesuncedu
Copy link
Copy Markdown
Contributor

I do not recommend using this approach. #40 is the preferred solution.

Require block size >=0 that is multiple of 512 bytes.
Use block size of 512 if one is not given.
Require record size of 512 bytes. Deprecate constructors taking recordSize as parameter

Modify tests to check for enforcement of record size == 512
Modify tests to check for correct overall length  for
different block sizes including PAX default, USTAR default, and unspecified.

Signed-off-by: Simon Spero <sesuncedu@gmail.com>

(cherry picked from commit d754d89)
Signed-off-by: Simon Spero <sesuncedu@gmail.com>
… them through if a

system property is set.

Signed-off-by: Simon Spero <sesuncedu@gmail.com>
@sesuncedu
Copy link
Copy Markdown
Contributor Author

The system property is can be discovered by reading the source code. This information could be added to the exception message.

@coveralls
Copy link
Copy Markdown

coveralls commented Jun 23, 2017

Coverage Status

Coverage increased (+0.04%) to 84.767% when pulling 368cb1b on sesuncedu:COMPRESS-407-SYSTEM-PROPERTY into 4be9979 on apache:master.

@asfgit asfgit closed this in fb9b618 Jun 24, 2017
sesuncedu pushed a commit to sesuncedu/commons-compress that referenced this pull request Jun 24, 2017
@sesuncedu sesuncedu deleted the COMPRESS-407-SYSTEM-PROPERTY branch June 24, 2017 21:05
sesuncedu pushed a commit to sesuncedu/commons-compress that referenced this pull request Jun 25, 2017
sesuncedu pushed a commit to sesuncedu/commons-compress that referenced this pull request Jun 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants