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

Using FILE_ABSOLUTEPATH and Original-Filename to populate FILEXT #600

Merged
merged 7 commits into from
Dec 27, 2023

Conversation

arp-0984
Copy link
Collaborator

@arp-0984 arp-0984 commented Oct 2, 2023

Modifying DropOffUtil.extractUniqueFileExtensions() to support full file paths and adding FILE_ABSOLUTEPATH as a field to look in to populate the FILEXT field on the IBDO. The existing behavior only used the Original-Filename field to populate FILEXT.

As part of this change, I also added a static method DropOffUtil.getBestFilenames() that looks at the IBDO in the FILE_ABSOLUTEPATH and Original-Filename fields and returns all values found in both of those fields.

Copy link
Collaborator

@drivenflywheel drivenflywheel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is going to be helpful functionality.

src/main/java/emissary/output/DropOffUtil.java Outdated Show resolved Hide resolved
src/main/java/emissary/output/DropOffUtil.java Outdated Show resolved Hide resolved
src/main/java/emissary/output/DropOffUtil.java Outdated Show resolved Hide resolved
src/main/java/emissary/output/DropOffUtil.java Outdated Show resolved Hide resolved
src/test/java/emissary/output/DropOffUtilTest.java Outdated Show resolved Hide resolved
src/test/java/emissary/output/DropOffUtilTest.java Outdated Show resolved Hide resolved
src/main/java/emissary/output/DropOffUtil.java Outdated Show resolved Hide resolved
Copy link
Collaborator

@drivenflywheel drivenflywheel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor cleanup needed

src/test/java/emissary/output/DropOffUtilTest.java Outdated Show resolved Hide resolved
src/test/java/emissary/output/DropOffUtilTest.java Outdated Show resolved Hide resolved
src/test/java/emissary/output/DropOffUtilTest.java Outdated Show resolved Hide resolved
src/main/java/emissary/core/constants/Parameters.java Outdated Show resolved Hide resolved
src/main/java/emissary/output/DropOffUtil.java Outdated Show resolved Hide resolved
drivenflywheel
drivenflywheel previously approved these changes Oct 13, 2023
Copy link
Collaborator

@fbruton fbruton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commented with a unit-test exercising issue.

@jpdahlke jpdahlke modified the milestones: v8.0.0-M11, v8.0.0-M12 Nov 29, 2023
@jpdahlke jpdahlke merged commit e8c0768 into NationalSecurityAgency:master Dec 27, 2023
9 checks passed
@jpdahlke jpdahlke added the enhancement An enhancement to an existing feature label Dec 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement to an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants