Skip to content

500 Internal Server Error when we're trying downloading file with anonymous URL #372

@vince7145

Description

@vince7145

Hello,

Linshare : 6.5.2
Debian : 12.13
Tomcat : 10.1.34
Postgresql : 15.15
Apache : 2.4.66
JDK : 17.0.18
Authentication OIDC with M365

We have an issue when we want to download file with anonymous URL.

The file is accessible and we can download it with an authenticated user.

The error message in the browser when we are clicking on the button download :

Image

Il est possible que https://linshare-user.localdomain.com/linshare/webservice/rest/external/anonymousurl/06c5be43-bc01-43d0-a349-894cfe9a0d6a/7dea50d1-37a5-4849-affd-49e13f1731ae/download connaisse un problème temporaire ou ait été déplacé.

Code d’erreur : 500 Internal Server Error

When we click on the button "Try again", we have this message :

<script/>
20000

Unexpected exception : class java.lang.ClassCastException : class org.linagora.linshare.core.domain.entities.AnonymousShareEntry cannot be cast to class org.linagora.linshare.core.domain.entities.ShareEntry (org.linagora.linshare.core.domain.entities.AnonymousShareEntry and org.linagora.linshare.core.domain.entities.ShareEntry are in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @5b67bb7e)

Can you help us ?

Best regards

Vincent

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions