Open Art4 opened 7 months ago
I can reproduce this error on the demo page: https://demo.open-datenschutzcenter.de/datenweitergabe/download/94
Attempted to call an undefined method named "getMimetype" of class "League\Flysystem\Filesystem".
Hello, this seems to be a weird problem. Is it working on other places in the ODC where documents can be uploaded? @holzi1005 DO you have any idea?
In #142 the library league/flysystem was updated to v2. The API for getting the mime type with (docs v1)
$response = $filesystem->getMimetype($path);
was changed to (docs v2):
try {
$mimeType = $filesystem->mimeType($path);
} catch (FilesystemException | UnableToRetrieveMetadata $exception) {
// handle the error
}
In #163 there was made adjustments for v2, but these were not enough.
I've created #245 to fix this issue.
Hallo @Art4,
vielen dank für diene Mithilfe. Wir waren die letzte Woche nicht im Büro, weshalb deine PRs liegen geblieben sind. Wir werden und alle deine PRs diese Woche anschauen und dir dann eine Rückmeldung geben.
Describe the bug
I can not download a file I've uploaded within a data processing.
To Reproduce Steps to reproduce the behavior:
Expected behavior The file should be downloaded or viewed.
Screenshots
Additional context
The click starts a request to
https://app.open-datenschutzcenter.de/datenweitergabe/download/<id>
(int Id redacted) and the server replies with a 500 Server error.