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

Project is broken on Spring Boot 1.5.4.RELEASE #54

Open
letientai299 opened this issue Jun 22, 2017 · 2 comments
Open

Project is broken on Spring Boot 1.5.4.RELEASE #54

letientai299 opened this issue Jun 22, 2017 · 2 comments

Comments

@letientai299
Copy link

I've tested this project with the latest Spring Boot version, and found that this is not work as expected.

1:26:09 › curl http://localhost:8080 -v
* Rebuilt URL to: http://localhost:8080/
*   Trying 127.0.0.1...
* TCP_NODELAY set
* Connected to localhost (127.0.0.1) port 8080 (#0)
> GET / HTTP/1.1
> Host: localhost:8080
> User-Agent: curl/7.52.1
> Accept: */*
>
< HTTP/1.1 302
< X-Content-Type-Options: nosniff
< X-XSS-Protection: 1; mode=block
< Cache-Control: no-cache, no-store, max-age=0, must-revalidate
< Pragma: no-cache
< Expires: 0
< X-Frame-Options: DENY
< Set-Cookie: JSESSIONID=6A692E4F63DF7520058169BEEC44E0D2; Path=/; HttpOnly
< Location: http://localhost:8080/login           <------------- This!!!
< Content-Length: 0
< Date: Thu, 22 Jun 2017 17:26:11 GMT
<
* Curl_http_done: called premature == 0
* Connection #0 to host localhost left intact

We got redirection to /login instead of the unauthorized error.

Steps to reproduce.

  1. Replace Spring Boot version in build.gradle.
buildscript {
	repositories {
		mavenCentral()
		maven { url "https://repo.spring.io/plugins-release" }
	}
	dependencies {
		classpath("org.springframework.boot:spring-boot-gradle-plugin:1.5.4.RELEASE")
	}
}

// keep the rest
  1. Remove WebInitializer.java, since this cause some issue with latest Boot version.
 rm src/main/java/hello/WebInitializer.java
  1. Run bootRun and send GET request using above curl command.
@abreu-dev
Copy link

@letientai299 how did you fixed this issue?

@letientai299
Copy link
Author

@andreabreu-me, Honestly, I forgot how did it went through. Right now I'm using spring boot 1.5.9.RELEASE, and I built my auth-service myself, using this project as reference only.

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

No branches or pull requests

2 participants