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

Only working in debug mode #174

Open
satbav opened this issue Nov 8, 2020 · 0 comments
Open

Only working in debug mode #174

satbav opened this issue Nov 8, 2020 · 0 comments

Comments

@satbav
Copy link

satbav commented Nov 8, 2020

Hi,

I was wondering if you've come across this issue before. The plugin is working as expected until we turn debug mode off.

Umbraco v8.6.1
UmbracoFileSystemProviders.Azure: 2.0.0
UmbracoFileSystemProviders.Azure.Media: 2.0.0

In this instance, I can see some strange behaviour. From inspecting the azure container, I can see that images uploaded through the back office do make it to the container. And strangely, from the front end, the images do appear to be 'loading', except they appear completely transparent. The image doesn't even 404, it thinks it has downloaded the image.

image

In debug mode, everything works as expected.

Is there a setting or something that I'm missing?
Currently, it's just using the diskcache, could that be what's causing the issue?

Update: I've upgraded Umbraco to version 8.7.0, and still have the same problem.

Additional Info: the site is not pre-compiled, so I don't believe this is an issue with the VPP. It is however in Release mode, that's where the issue starts.

Update: I've gone into debugging the source code.
What I've noticed between the same file, in debug mode, working, content length is 11392, when in release mode it's 11388. It seems some bytes are chopped off. I've added some code to save the stream out to a file, and at each point (Open() in FileSystemVirtualFile, and OpenFile in AzureFileSystem) they output correctly to disk.

Many Thanks,
Bav

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

No branches or pull requests

1 participant