-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Imagesharp Cropping blocks other middleware #15470
Comments
Hi there @rsoeteman! Firstly, a big thank you for raising this issue. Every piece of feedback we receive helps us to make Umbraco better. We really appreciate your patience while we wait for our team to have a look at this but we wanted to let you know that we see this and share with you the plan for what comes next.
We wish we could work with everyone directly and assess your issue immediately but we're in the fortunate position of having lots of contributions to work with and only a few humans who are able to do it. We are making progress though and in the meantime, we will keep you in the loop and let you know when we have any questions. Thanks, from your friendly Umbraco GitHub bot 🤖 🙂 |
Hi @rsoeteman Imagesharp middleware is added in the same way. I think you will need to insure you add your filter first, e.g. builder.Services.Configure<UmbracoPipelineOptions>(options => options.PipelineFilters.Insert(0, new MyTestFilterFilter("MyTestFilterFilter"))); |
Thanks @bergmania Tried that but same result, maybe my plugin gets registered before ImageSharp? |
You should be able to inspect the options.PipelineFilters and see the ordering. And if your get registed before imagesharp, then imagesharp should still end up after your. |
Hi @rsoeteman could you let me know if this is still relevant. I do find the issue description important, so I would like to know if this is still something you experience? Also if you could answer Bjarkes question if would be great, otherwise let us know and we will find someone to reproduce this. But it is hard to prioritize the case as this may sound like a individual case. So please help us get an idea about where things are at :-) Thanks in advance |
Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)
v12+
Bug summary
I have a filter that checks media items. This works fine until I request an image with image dimensions.
https://localhost:44318/media/3cleoc0g/adminprotected.png?width=500 then the whole pipeline is terminated. https://localhost:44318/media/3cleoc0g/adminprotected.png Works since this url is ignored by the imageprocessor
Specifics
No response
Steps to reproduce
use this filter
And configure it
builder.Services.Configure<UmbracoPipelineOptions>(options => options.AddFilter(new MyTestFilterFilter("MyTestFilterFilter")));
Request https://localhost:44318/media/3cleoc0g/adminprotected.png See PrePipelineAction is hit
Request https://localhost:44318/media/3cleoc0g/adminprotected.png?width=500 see PrePipelineAction is not hit.
Expected result / actual result
Expected:
In both cases the PrePipelineAction is hit
The text was updated successfully, but these errors were encountered: