nextcloud: direct pre-signed download link#498820
Conversation
10b57be to
3094514
Compare
|
please review. |
|
I think adding an assertion for the case where this is enabled on versions before 33 makes sense. |
Added! Thanks. |
| { | ||
| assertion = | ||
| lib.versionAtLeast cfg.package.version "33.0.0" | ||
| || cfg.config.objectstore.s3.use_presigned_url != null; |
There was a problem hiding this comment.
| || cfg.config.objectstore.s3.use_presigned_url != null; | |
| || cfg.config.objectstore.s3.use_presigned_url == null; |
Should be like this no? Either the version is 33.0.0 or higher or the option must be empty for everything to be fine.
There was a problem hiding this comment.
I really do not know why I included the second line in assertion, I have removed it completely now and left the essential part.
There was a problem hiding this comment.
No you need to keep it, because also support older versions. So just apply my suggestion and then it should be good.
Ma27
left a comment
There was a problem hiding this comment.
@provokateurin how hard would it be to extend the VM test to make sure it's properly serving pre-signed files? I imagine you'd have to upload a file and obtain a download link?
If it's reasonably doable, I'd really like to see test-coveratge for it.
the verification procedure is described here: |
Should be easy, the link is just a WebDAV prop that can be queried. |
This PR extends S3 configuration with a
use_presigned_urlintroduced in Nextcloud 33 with nextcloud/server#54436Things done
passthru.tests.nixpkgs-reviewon this PR. See nixpkgs-review usage../result/bin/.