-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
pdf viewer not display content in storage type mode webdav #33251
Comments
You should be using a reverse proxy + https on your rocket server - not http/3000. You should set your webdav up in a similar way. You don't tell us what system you are using. Nextcloud or a.n. other? Gridfs will work as it is effectively an "internal" link and serving the file correctly. Likely the webdav url/file is being served incorrectly. I think this is an issue with your webdav, not rocket. |
It's a copy of the VM. The original one uses https and nginx. The webdav settings are identical. Synology is used for the webdav server. |
So yoor working version does what is meant to with Rocket and WebDav, correct? |
Uploading files to chat works. Downloading files from chat work. Pdf viewing does not work. It is displayed as in the screenshots above. https://i.imgur.com/gRKaipb.png
upd. Found a temporary workaround via Storage Type - File system + davfs2. https://i.imgur.com/mIIaUf9.png |
When it fails does it only do it in the client, or both client and browsers? Your fails above point to the client? |
Client and browsers, Desktop App: 4.0.2, Browser Version: Chrome 128.0.6613.121. I also brought up TrueNAS and tried to configure through it. webdav http. But that didn't help either. |
Pretty sure that this is a mime type issue and your webdav or web server is not serving up the right file type - it is sending plain text and not application/pdf Without trying to teach you to suck eggs have you checked your mime type settings? Both in Rocket and in your web server? A search on the interwebs for something like "nginx mime type" may assist. Also have you tried testing local file storage as well (using your web proxy - not accessing via localhost:3000)? |
Can I work on this issue? |
First see my earlier response 33331. You do not need to ask, and no one assigns things, but you do need to understand how the organisation works. Best to ask on open.rocket.chat Second do you even understand the issue? Can you replicate it, because if you can't, how do you know what to fix? If you read all the comments - which you really must do - you will see more information is required. |
Description:
PDF viewer not display content in storage type mode webdav In the browser and in Desktop Clients windows.
If you change the storage type to GridFS, it displays correctly.
Steps to reproduce:
Expected behavior:
Display the content in the same way as in storage type GridFS.
Actual behavior:
Server Setup Information:
Client Setup Information
Additional context
Relevant logs:
The text was updated successfully, but these errors were encountered: