Repository navigation
Conversation
Every scenario with a session used the right cookie or none. Nothing checked that a wrong one is refused: an id that differs in one character, a prefix, an id with a character added, an empty value, an empty value against an empty slot, an id that has timed out, or a login with a wrong password. Add a scenario for these.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The host tests never check that a wrong session cookie is refused: every scenario with a session uses the right cookie or none at all.
This adds a scenario to
test_httpd_tx.cfor an id that differs in one character, a prefix of the id, the id with a character added, an empty value, an empty value against an empty slot, an id that has timed out, and a login with a wrong password. All of them pass on main.To see that they can fail I took the timeout check out of
session_check(): the timeout case then fails. Taking out the test for an empty slot is not caught; the fixed-length compare refuses an empty value on its own.