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

remove anyway broken "http" (Spring Boot) profile (fixes #514) #525

Merged
merged 2 commits into from
Oct 10, 2018

Conversation

vorburger
Copy link
Contributor

@vorburger vorburger commented Oct 4, 2018

@coveralls
Copy link

coveralls commented Oct 4, 2018

Coverage Status

Coverage increased (+0.03%) to 53.186% when pulling 59e7a59 on vorburger:issue-514_rm-http-profile into 1225de5 on alfio-event:master.

Copy link
Member

@syjer syjer left a comment

Choose a reason for hiding this comment

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

Hi @vorburger , I've commented some issue that will appear when used with the dev profile

SessionCookieConfig config = servletContext.getSessionCookieConfig();
config.setHttpOnly(true);
config.setSecure(!environment.acceptsProfiles(Initializer.PROFILE_HTTP));
//force log initialization, then disable it
config.setSecure(true);
Copy link
Member

Choose a reason for hiding this comment

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

this will not work in dev mode, should be

config.setSecure(environment.acceptsProfiles(Initializer.PROFILE_LIVE ))

config.setSecure(!environment.acceptsProfiles(PROFILE_HTTP));
//

config.setSecure(true);
Copy link
Member

Choose a reason for hiding this comment

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

this will not work in dev mode, should be

config.setSecure(environment.acceptsProfiles(Initializer.PROFILE_LIVE ))

@syjer
Copy link
Member

syjer commented Oct 10, 2018

hi @vorburger , could you do the changes that I've requested or do you prefer that I do it ?

@vorburger
Copy link
Contributor Author

@syjer I'll do it right now! 😄

@vorburger
Copy link
Contributor Author

@syjer done

@cbellone cbellone merged commit c17a575 into alfio-event:master Oct 10, 2018
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.

4 participants