You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all thanks for a great library! I'm having an issue that if the app goes offline for a moment and comes back online (can be simulated with Meteor.disconnect() and Meteor.reconnect() ), the this.userId in the protected method on the server is null. I checked that the x_mtok cookie is set and it's correctly updated to the new session id after the reconnect. I checked in the server.js, in the _getUserDefault() when getting the cookie it gets the old session id for the session that doesn't exist anymore, so it can't find the user. What I would expect is that it returns the new session id so it finds the user. When I refresh the page everything is working again.
I'm using ostrio:files version 2.3.3 on Linux in a single server setup. I created a very simple meteor app to reproduce it here: https://github.com/aertms/mfiles
You can login with user test and password test. If you upload an image file when running the small app it shows below. Now if you run Meteor.disconnect() and then Meteor.reconnect() in the browser console the image is not shown anymore, it returns a 401 code. After a refresh it's shown again.
I'm not sure if this is a bug or if there is an issue with my implementation. Or is this expected and I need to work around it?
The text was updated successfully, but these errors were encountered:
At Meteor Forums is also other posts about bug where userId is null. I know only about above userId null fix in Meteor 3. I'm currently in progress of migrating to Meteor 3, I have not tested this bug.
First of all thanks for a great library! I'm having an issue that if the app goes offline for a moment and comes back online (can be simulated with
Meteor.disconnect()
andMeteor.reconnect()
), thethis.userId
in the protected method on the server isnull
. I checked that thex_mtok
cookie is set and it's correctly updated to the new session id after the reconnect. I checked in theserver.js
, in the_getUserDefault()
when getting the cookie it gets the old session id for the session that doesn't exist anymore, so it can't find the user. What I would expect is that it returns the new session id so it finds the user. When I refresh the page everything is working again.I'm using ostrio:files version 2.3.3 on Linux in a single server setup. I created a very simple meteor app to reproduce it here: https://github.com/aertms/mfiles
You can login with user
test
and passwordtest
. If you upload an image file when running the small app it shows below. Now if you runMeteor.disconnect()
and thenMeteor.reconnect()
in the browser console the image is not shown anymore, it returns a 401 code. After a refresh it's shown again.I'm not sure if this is a bug or if there is an issue with my implementation. Or is this expected and I need to work around it?
The text was updated successfully, but these errors were encountered: