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

[Bug] bulkdata retrieval for this study is broken since v3.9.2 #4658

Open
whage opened this issue Jan 8, 2025 · 6 comments
Open

[Bug] bulkdata retrieval for this study is broken since v3.9.2 #4658

whage opened this issue Jan 8, 2025 · 6 comments
Labels
Awaiting Reproduction Can we reproduce the reported bug?

Comments

@whage
Copy link

whage commented Jan 8, 2025

Describe the Bug

We are using the ohif/app:v3.9.2 docker image.
When trying to view the following study, an error popup is shown in the viewer when execution enters this line: https://github.com/OHIF/Viewers/blame/v3.9.2/extensions/default/src/DicomWebDataSource/index.js#L390

naturalized is null and calling Object.keys(naturalized) results in some exception handler that shows the popup.
This is as far as I could trace the error back.

Anonymized study: https://drive.google.com/file/d/1YLerqJYESb4U_KFsPKR10B7F5Ev_iNlZ/view?usp=drive_link

As far as I can see the relevant code was changed in 3.9.2, it was still working in 3.8.5.

@wayfarer3130 can you please take a look, the affected lines seem to be from your changes from a few months ago.

Steps to Reproduce

Load the study into a dataSource and try to view it using ohif:app/v3.9.2
https://drive.google.com/file/d/1YLerqJYESb4U_KFsPKR10B7F5Ev_iNlZ/view?usp=drive_link

The current behavior

An error popup is shown: Image

The expected behavior

The "neutralization" (not sure yet what it means) shouldn't result in a null object, as it didn't in the previous version.
The images should be viewable.

OS

Linux

Node version

18.16.1 (as defined in the Dockerfile of v3.9.2)

Browser

Version 131.0.6778.85 (Official Build) (64-bit)

@whage whage added the Awaiting Reproduction Can we reproduce the reported bug? label Jan 8, 2025
@wayfarer3130
Copy link
Contributor

Can you test it with #4262 and the correct configuration for that enabled?

@whage
Copy link
Author

whage commented Jan 9, 2025

Just do a build from the last commit in the PR? I'll try that now.

@whage
Copy link
Author

whage commented Jan 9, 2025

@wayfarer3130 Thank you very much for the quick response, your suggestion seems to work!

I checked out the commit you mentioned, created a new branch and cherry-picked just 2 small changes that were required for me, then did a new docker image build and tested the resulting image.
Here is a PR in my fork just for showing the diff: https://github.com/whage/Viewers/pull/1/files

As I understand, the "fix" you linked is some earlier state of the repo that was changed later and is no longer there in the latest releases. Should the code be reverted to that state? What do you think is the solution? How can I assist?

@wayfarer3130
Copy link
Contributor

wayfarer3130 commented Jan 9, 2025 via email

@whage
Copy link
Author

whage commented Jan 9, 2025

I appreciate your comments about the accept header and the PUBLIC_URL param but those are out of scope here I think. I just showed you those changes so that we have a complete picture of what I was building and running.
I had this open issue about the accept header problem: #4369. I closed it myself because I found that it was fixed in a later version.
However, in later versions, the bulkdata stuff were "broken", that is why I reported this issue.

The bulkdata problems are solved by the commits you showed me (onto which I cherry-picked my PUBLIC_URL and accept header changes for testing) but AFAIK that is old code (from about 6 months ago) that has been changed since then and the later implementation just doesn't work with my test data.
Tha changes from august break it for my use case: https://github.com/OHIF/Viewers/blame/v3.9.2/extensions/default/src/DicomWebDataSource/index.js#L390.

So to reiterate, my accept header problems are solved. The PUBLIC_URL thing is also solved, even though your suggestion of using it as a build-arg is better, I'll try that, but it is solved nonetheless.
What is not solved is the bulkdata processing in the latest versions.

Can we bring this working piece of bulkdata handling code into the latest versions or would that cause something else to not work?
Can we expect a new version where everything is working?

Thanks a lot for your support!

@wayfarer3130
Copy link
Contributor

wayfarer3130 commented Jan 9, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Reproduction Can we reproduce the reported bug?
Projects
None yet
Development

No branches or pull requests

2 participants