Skip to content

make sure cookie is not undefined#238

Closed
marcushat wants to merge 1 commit into
expressjs:masterfrom
marcushat:master
Closed

make sure cookie is not undefined#238
marcushat wants to merge 1 commit into
expressjs:masterfrom
marcushat:master

Conversation

@marcushat

Copy link
Copy Markdown

Was having sess.cookie show up undefined sometimes, and it was crashing my server when it tried to read the expire property. This doesn't fix the root of the bug but it does stop the process from crashing in the meantime. This error was also fixed by clearing my browser cache. The client side shouldn't be able to crash the process.

@dougwilson

Copy link
Copy Markdown
Contributor

Thanks! Please add a test that fails without your change and succeeds after your change.

@marcushat

Copy link
Copy Markdown
Author

New to node, don't know what's causing it to be undefined just know that it definitely shouldn't be. Hopefully someone else can find the root cause. I'm not doing anything with cookies in my app and I'm using the default session store when this happens.

@dougwilson

Copy link
Copy Markdown
Contributor

Is there a way you can provide me full code, versions, and instructions on how to reproduce the issue? I can then debug it and try to figure it out, if you want this to be merged. Without a test, we can't actually merge anything, as 1) we're not sure if this is the actual solution and 2) we can accidentally revert the change without realizing it, due to it not being tested (this is why the PR is failing the automatic checks).

@marcushat

Copy link
Copy Markdown
Author

I'll send you a link to a private repo of the code in a bit.

@dougwilson

Copy link
Copy Markdown
Contributor

Hi @marcushat , any update to getting tests added to this PR so I can merge? We're going to cut a release pretty soon so wanted to check in.

@dougwilson

Copy link
Copy Markdown
Contributor

Hi @marcushat , I'm going to close this because there hasn't been a reply in almost a month now. If you want to get tests added in, please feel free to make another pull request with everything!

@dougwilson dougwilson closed this Jan 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants