Skip to content

UnboundIdContainer fails with TestContext #17543

@rwinch

Description

@rwinch

This appears to be related to

Adding @DirtiesContext works around the issue

Note that part of the problem is a little challenging when using an ephemeral port. We cannot just start and restart the context because:

  1. If we allocate a new port then Beans that used the previous port information will be stale
  2. If we preserve the same port, the port may have been taken in the meantime

I spoke to @jhoeller and @sbrannen offline and it was suggested that we might be able to do something like this:

public void stop() {
    if (port == 0 && context != null && !context.isClosed()) return;
}

Metadata

Metadata

Assignees

Labels

in: ldapAn issue in spring-security-ldaptype: bugA general bug

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions