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

Image manipulation returns same with changed parameters #669

Closed
philippguertler opened this issue Mar 13, 2019 · 1 comment · Fixed by #757
Closed

Image manipulation returns same with changed parameters #669

philippguertler opened this issue Mar 13, 2019 · 1 comment · Fixed by #757

Comments

@philippguertler
Copy link
Contributor

philippguertler commented Mar 13, 2019

Gentics Mesh Version, operating system, or hardware.

  • v0.30.2

Problem

When changing the parameters of an image manipulation request, it can happen that an old cached image is returned even though the parameters have changed.

Reproducer

  1. Upload an image
  2. Fetch the image like this: http://localhost:8081/api/v1/test/nodes/fe7a22767bc14db7ba22767bc14db721/binary/binary?w=300&h=400&fpx=0.46&fpy=0.35&fpdebug=true&crop=fp&fpz=2
  3. Fetch it again and remove the fpz parameter: http://localhost:8081/api/v1/test/nodes/fe7a22767bc14db7ba22767bc14db721/binary/binary?w=300&h=400&fpx=0.46&fpy=0.35&fpdebug=true&crop=fp

Expected behaviour and actual behaviour

I expected the zoomed out image to be returned, but instead I get the previous image again.

@philippguertler
Copy link
Contributor Author

Prime suspect:

File[] foundFiles = baseFolder.listFiles((dir, name) -> name.startsWith(baseName));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants