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 #211

Merged
merged 6 commits into from
Jun 9, 2022

Conversation

reckart
Copy link
Member

@reckart reckart commented Jun 8, 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 5 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
* main: (47 commits)
  [UIMA-6436] Move maintainer documentation from website into maintainer guide
  [UIMA-6459] Upgrade dependencies
  [UIMA-6436] Move maintainer documentation from website into maintainer guide
  [UIMA-6436] Move maintainer documentation from website into maintainer guide
  [UIMA-6436] Move maintainer documentation from website into maintainer guide
  [UIMA-6463] Use toolchains to ensure compatibility with Java 1.8
  [UIMA-6462] Avoid deploy broken checksum files for p2content.xml and artifacts.xml in feature modules
  [UIMA-6436] Move maintainer documentation from website into maintainer guide
  [UIMA-6436] Move maintainer documentation from website into maintainer guide
  [UIMA-6436] Move maintainer documentation from website into maintainer guide
  [UIMA-6436] Move maintainer documentation from website into maintainer guide
  [UIMA-6436] Move maintainer documentation from website into maintainer guide
  [UIMA-6436] Move maintainer documentation from website into maintainer guide
  [UIMA-6436] Move maintainer documentation from website into maintainer guide
  [UIMA-6436] Move maintainer documentation from website into maintainer guide
  [UIMA-6459] Upgrade dependencies (UIMAJ 3.4.0)
  [UIMA-6436] Move maintainer documentation from website into maintainer guide
  [UIMA-6459] Upgrade dependencies (UIMAJ 3.4.0)
  [UIMA-6459] Upgrade dependencies (UIMAJ 3.4.0)
  [UIMA-6454] Update dependencies (UIMA Java SDK 3.3.1)
  ...
@reckart reckart added the ⚙️ Refactoring Improvement for development or maintainability label Jun 8, 2022
@reckart reckart added this to the 3.4.0 milestone Jun 8, 2022
@reckart reckart self-assigned this Jun 8, 2022
@reckart reckart merged commit 5760533 into main Jun 9, 2022
@reckart reckart deleted the UIMA-6469-Cleaning-up-file-handling-code branch June 9, 2022 07:23
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
- Add convenience methods for skipping validation
- Add JavaDoc
reckart added a commit that referenced this pull request Sep 23, 2024
…idation

Issue #211: Conveniently skip validation
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