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

[FIX] File upload on multi-instances using a path prefix #7855

Merged

Conversation

Darkneon
Copy link
Contributor

@RocketChat/core

Closes #ISSUE_NUMBER

When running RC with multi-instances and a path prefix like http://domain.com/rocket-chat, file uploads return an error when 2 requests are handled by different instances. The reason is req.url does not contain url prefix (it's stripped by Meteor https://github.com/meteor/meteor/blob/59aca741ccc22fbacc72786b94c97d74fb66e3a9/packages/webapp/webapp_server.js#L618) so when the request is rerouted to the correct instance it goes MIA.

I tested this change with 1 and many instances running, with a prefix and no prefix and using S3 and FileSystem.

@rodrigok rodrigok added this to the 0.59.0 milestone Aug 24, 2017
@rodrigok rodrigok merged commit 73d4b09 into RocketChat:develop Aug 24, 2017
@rodrigok
Copy link
Member

Thanks @Darkneon

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

Successfully merging this pull request may close these issues.

2 participants