-
Notifications
You must be signed in to change notification settings - Fork 30
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: Save settings on Image with 60 channels #321
Comments
This issue has been mentioned on Image.sc Forum. There might be relevant details there: |
This is getting kinda messy. I'm wondering if @chris-allan has any thoughts on this? The problem is that rendering settings encoded as JSON can get very long for images with many channels. e.g. for a single-channel:
so with 60 channels we exceed the query length limit in nginx. The previous issue #201 was fixed in the OpenLayers part of the iviewer, that kept track of the last saved settings and uses the difference between current and saved settings to generate the rendering query string. To fix this same bug for saving, I need to duplicate that logic in the model/aurelia part of the app. However, before doing that I wondered if we might consider a more concise way of encoding the rendering settings in the query string, which would also fix the other issues above. Any thoughts on this? cc @jburel |
Hello, I think I faced the same problem with image with 35 channels. THat feature works in old viewer and preview but not in iviewer. Any chance that is a temporary issues? |
Hi Ola, can you check the dev-tools to see what response you're getting when you try to save the settings? I wouldn't have thought that 35 channels is too many. |
Hi @will-moore, appology for a slow followup. adjusting nginx config doesn't change anything, I am getting Status 400 Bad Request
|
I think the error seems to come from a Gunicorn backend, not from Nginx. I fixed that using omero.web.wsgi_args to change it's limit by passing the parameter --limit-request-line https://docs.gunicorn.org/en/latest/settings.html?highlight=limit_request_line#limit-request-line Hope that helps |
The issue of long query strings in the rendering URL was fixed in #201 but the same changes were not applied to the Saving URL where rendering settings are also passed in JSON encoded in the URL.
This means that saving of rendering settings fails on images with large numbers of channels as reported at https://forum.image.sc/t/omero-iviewer-doesnt-save-rendering-settings-in-image-w-many-channels/37484
The text was updated successfully, but these errors were encountered: