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

WW-4741: Do not create session #207

Merged
merged 6 commits into from Jan 31, 2018
Merged

WW-4741: Do not create session #207

merged 6 commits into from Jan 31, 2018

Conversation

lukaszlenart
Copy link
Member

Resolves WW-4741

@coveralls
Copy link

coveralls commented Jan 31, 2018

Coverage Status

Coverage increased (+0.009%) to 46.638% when pulling 2eb8091 on lukaszlenart:sessionless into 95a24c8 on apache:master.

}

return locale;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When shouldStore field is not false (i.e. we should store), shouldn't we forcefully create a session and store the locale? if we should not, shouldn't we return null here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should forcefully create the session but I would leave that to a user, if there was no session just ignore (a user fault). And returning null can break action processing as then the null will be set in ActionContext

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

test not create when no session
@yasserzamani
Copy link
Member

LGTM 👍 Nice catch! Thanks!

@yasserzamani yasserzamani merged commit 20a7b65 into apache:master Jan 31, 2018
@lukaszlenart lukaszlenart deleted the sessionless branch January 31, 2018 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants