Skip to content

It is not possible to opt-out of profile validation or use profile names that contain '.' #45947

Closed
@Crain-32

Description

@Crain-32

With the merge of #43176 Profile names were heavily restricted. While I can understand that this change is required due to the errors of parsing mentioned in a separate issue, it was a surprise to suddenly have . be invalid in the Profile.

In trying to debug this I cross referenced the following.

  • Spring Boot Profiles Docs
  • Spring Framework Profile Mentions
  • Spring Boot Release Summary
    • The full wiki page does list the breaking change.
  • Even Profile Javadocs

Another developer found it was 3.5.0's changes that caused the break.

With automatic dependency updates this resulted in sudden break for a few teams. It would have been beneficial to have a version which logs a very loud warning before a breaking version. Breaking in 3.5.1 or 3.6.0 would have been fine. Additionally the profile restrictions should have been documented in at least the main documentation before the release.


TLDR : Warning Version and then a Breaking Version would have been appreciated.

Metadata

Metadata

Assignees

Labels

status: noteworthyA noteworthy issue to call out in the release notestype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions