Nexrender: Downloading assets breaks when query parameters are in the URL

Created on 17 Oct 2019  路  6Comments  路  Source: inlife/nexrender

Describe the bug
A clear and concise description of what the bug is, and ways to reproduce it.

When using a http url as asset src the download action breaks when there are query parameters within the url. The generated destination / file path includes the query parameters after the extension which causes a write error.

Nexrender version 1.8.0
Running on windows server 2016

bug

Most helpful comment

published as fix in v1.8.10

All 6 comments

Oh that is very bad bug indeed, I'll try to come up with a fix asap.

published as fix in v1.8.10

While the issue is fixed, there is still an issue with urls where the extension is not explicitly stated within the url. For example https://foo.bar/files/. The worker downloads the file just fine but because it cannot find an extension it gets saved without one and can't be used in after effects. Is it possible to provide our own filename in this scenario? I retrieve extensions by content-type headers and mime types.

I'm not sure yet on how to tackle this issue. Does anybody have any ideas?

I'm not sure yet on how to tackle this issue. Does anybody have any ideas?

Could do a HEAD request to the url given to determine its content type which should be the same as the returned file.

Asset now has option to provide an extension for the file: asset.extension, so that should solve the later issue

Was this page helpful?
0 / 5 - 0 ratings