Skip to content
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

Unable to download an extensionless file #8540

Closed
staticjinno opened this issue Oct 19, 2017 · 3 comments · Fixed by #13033
Closed

Unable to download an extensionless file #8540

staticjinno opened this issue Oct 19, 2017 · 3 comments · Fixed by #13033

Comments

@staticjinno
Copy link

Description:

Uploaded an extension-less file, when trying to download it i'm getting an error.

Server Setup Information:

  • Version of Rocket.Chat Server: latest (0.59.0)
  • Operating System: docker on ubuntu 14
  • Deployment Method(snap/docker/tar/etc): docker
  • Number of Running Instances: 1
  • DB Replicaset Oplog: Disabled
  • Node Version: 4.8.4 - x64

Steps to Reproduce:

  1. upload an extension-less file
  2. try to download it

Expected behavior:

file to be downloaded

Actual behavior:

rocket is expecting a content-type

Relevant logs:

Error: value required in setHeader("Content-Type", value).
at ServerResponse.OutgoingMessage.setHeader (_http_outgoing.js:354:11)
at ServerResponse.res.setHeader (/app/bundle/programs/server/npm/node_modules/meteor/webapp/node_modules/connect/lib/patch.js:134:22)
at ServerResponse.res.setHeader (/app/bundle/programs/server/packages/rocketchat_cors.js:81:20)
at ServerResponse.setWriteHeadHeaders (/app/bundle/programs/server/npm/node_modules/meteor/webapp/node_modules/on-headers/index.js:82:19)
at ServerResponse.writeHead (/app/bundle/programs/server/npm/node_modules/meteor/webapp/node_modules/on-headers/index.js:41:36)
at readFromGridFS (/app/bundle/programs/server/packages/rocketchat_file-upload.js:1191:7)
at FileUploadClass.get (/app/bundle/programs/server/packages/rocketchat_file-upload.js:1273:10)
at Object.assign.get (/app/bundle/programs/server/packages/rocketchat_file-upload.js:482:17)
at Object.handle (/app/bundle/programs/server/packages/rocketchat_file-upload.js:784:22)
at next (/app/bundle/programs/server/npm/node_modules/meteor/webapp/node_modules/connect/lib/proto.js:174:15)
at Object.handle (/app/bundle/programs/server/packages/jalik_ufs.js:1231:13)
at next (/app/bundle/programs/server/npm/node_modules/meteor/webapp/node_modules/connect/lib/proto.js:174:15)
at middleware (/app/bundle/programs/server/packages/rocketchat_cas.js:233:4)
at /app/bundle/programs/server/packages/rocketchat_cas.js:260:3

@wilibox
Copy link

wilibox commented May 24, 2018

We are suffering from this problem too. Is it going to be fixed ?

@tbehner
Copy link

tbehner commented Oct 1, 2018

I'm getting this error too. Is there any progress on this issue?

@fabien4455
Copy link

Please see #12668 I've writed a lot of things about this problem.

With some screenshots etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants