Skip to content

Spring Boot login page issue #460

@sshimanski

Description

@sshimanski

Description

Unable to request default login form with logbook-spring-boot-starter in the dependencies. As soon I remove dependency or set logbook.filter.enable=false property - everything works as expected.

Expected Behavior

I should be able to access login form with enabled LogbookFilter

Actual Behavior

I have simple spring boot application with default authentication form. With logbook-spring-boot-starter - application starts, but I am unable to reach login form. For different web servers I can see next behaviour:

  • Tomcat: continuous load
  • Jetty: 500 error with "insufficient content written" message
  • Undertow: empty reply from server with "Fixed length stream closed with with 1317 bytes remaining" message in logs

Context

  • logbook-spring-boot-starter version: 1.13.0
  • Spring Boot version: 2.1.2.RELEASE

My security configs:

    @Override
    protected void configure(HttpSecurity http) throws Exception {
        http
            .csrf().disable()
            .authorizeRequests()
//          .antMatchers("/api/**").permitAll()
            .anyRequest().authenticated()
            .and().formLogin();
    }

If I uncomment line with permitAll - I still can not access login form, while api works as expected and I can see logged requests and responses.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions