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

fix: Load images from application jar #4389

Closed
wants to merge 5 commits into from

Conversation

connoratrug
Copy link
Contributor

@connoratrug connoratrug commented Oct 23, 2024

What are the main changes you did:

  • Use filesystem path walker in case of file in jar

Closes #3512

how to test:

  • load profile with data ( and files ) contained in jar , images should now be loaded from jar

Use the 'IMAGE_TEST' profile and include the demodata to test with minimal example, this profile can be removed after initial review and we can extend the catalogue example to include images

See: #4393 for fix ( excludes 'IMAGE_TEST' from options list in create modal)

todo:

  • updated docs in case of new feature
  • added/updated tests
  • added/updated testplan to include a test for this fix, including ref to bug using # notation

getBinaryFileWrapper impl did not work within jar file ( ci and prod runs as jar)
by skipping to getResourceAsStream the file van be read from the jar, but folder can not be listed this way

either pas file name ( extentions and type ) to getBinaryFileWrapper or find a way to scan the files with in the jar
@connoratrug connoratrug marked this pull request as draft October 23, 2024 14:21
@connoratrug connoratrug changed the title spike: Load profile with image fix: Load images from application jar Oct 23, 2024
@mswertz mswertz marked this pull request as ready for review October 24, 2024 07:33
Copy link

sonarcloud bot commented Oct 24, 2024

Copy link
Member

@harmbrugge harmbrugge left a comment

Choose a reason for hiding this comment

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

A few small things.
And I would move the file_image to the pet_store profile

Copy link
Member

Choose a reason for hiding this comment

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

Maybe better to move the file to the pet_store profile. Adding a profile for just testing is a bit much

@connoratrug connoratrug marked this pull request as draft October 24, 2024 12:52
@connoratrug
Copy link
Contributor Author

close in favour of : #4393

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.

fix(demo): As catalogue data manager I would like to include files in the test/demo data on the repository
2 participants