Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[UIMA-6469] Cleaning up file handling code #209

Merged
merged 4 commits into from
Jun 8, 2022

Conversation

reckart
Copy link
Member

@reckart reckart commented Jun 3, 2022

JIRA Ticket: https://issues.apache.org/jira/browse/UIMA-6469

What's in the PR

  • Introduce various constants
  • Use try-with-resources to more effect
  • Modernize and extend tests
  • More constants instead of magic strings
  • Centralize normalization of paths to unix paths
  • Improve JAR extraction handling

How to test manually

  • No specific test procedure

Automatic testing

  • PR adds/updates unit tests

Documentation

  • PR adds/updates documentation

Organizational

  • PR includes new dependencies.
    Only dependencies under approved licenses are allowed. LICENSE and NOTICE files in the respective modules where dependencies have been added as well as in the project root have been updated.

reckart added 3 commits June 3, 2022 08:35
- Introduce various constants
- Use try-with-resources to more effect
- Modernize and extend tests
- More constants instead of magic strings
- Centralize normalization of paths to unix paths
- Improve JAR extraction handling
- More try-with-resources
@reckart reckart added the ⚙️ Refactoring Improvement for development or maintainability label Jun 3, 2022
@reckart reckart added this to the 3.3.1 milestone Jun 3, 2022
@reckart reckart self-assigned this Jun 3, 2022
@reckart reckart merged commit b32c5be into maintenance/3.3.x Jun 8, 2022
@reckart reckart deleted the UIMA-6469-Cleaning-up-file-handling-code branch June 8, 2022 13:54
@reckart reckart restored the UIMA-6469-Cleaning-up-file-handling-code branch June 8, 2022 13:54
bdeboe added a commit to bdeboe/uima-uimaj that referenced this pull request Jan 23, 2023
This change introduces file-handling enhancements from
apache#209 and apache#211 to the main-v2
branch, including the fix addressing CVE-2022-32287.

This meant porting the entire org.apache.uima.util.impl.Constants class
and also the unit test with associated org.junit.jupiter libraries.
Given that these are only used in the test scope, it didn't feel too
outrageous to use them just in this test and keep the others how
they've always been in v2.
reckart pushed a commit that referenced this pull request Jan 24, 2023
This change introduces file-handling enhancements from
#209 and #211 to the main-v2
branch, including the fix addressing CVE-2022-32287.

This meant porting the entire org.apache.uima.util.impl.Constants class
and also the unit test with associated org.junit.jupiter libraries.
Given that these are only used in the test scope, it didn't feel too
outrageous to use them just in this test and keep the others how
they've always been in v2.
reckart pushed a commit that referenced this pull request Jan 24, 2023
This change introduces file-handling enhancements from
#209 and #211 to the main-v2
branch, including the fix addressing CVE-2022-32287.

This meant porting the entire org.apache.uima.util.impl.Constants class
and also the unit test with associated org.junit.jupiter libraries.
Given that these are only used in the test scope, it didn't feel too
outrageous to use them just in this test and keep the others how
they've always been in v2.
reckart added a commit that referenced this pull request Sep 23, 2024
- Allow settings a default validator for all tests and a specific validator per test
reckart added a commit that referenced this pull request Sep 23, 2024
…alidator-for-a-test

Issue #209: Ability to override validator for a test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚙️ Refactoring Improvement for development or maintainability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant