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

The name of the matching-strategy property is incorrect in the action message of the failure analysis for a PatternParseException #28791

Closed
Ed42 opened this issue Nov 24, 2021 · 3 comments
Labels
status: superseded An issue that has been superseded by another type: bug A general bug

Comments

@Ed42
Copy link

Ed42 commented Nov 24, 2021

changing from Spring Boot 2.5.6 to 2.6.0 produces this error on startup:

Description:

Invalid mapping pattern detected: /**/swagger-ui/**
^
No more pattern data allowed after {*...} or ** pattern element

Action:

Fix this pattern in your application or switch to the legacy parser implementation with 'spring.mvc.pathpattern.matching-strategy=ant_path_matcher'.

The suggested (legacy) fix does not work.

Using

        <swagger-models.version>2.1.11</swagger-models.version>
        <springdoc.version>1.5.12</springdoc.version>

        ...

            <!-- OpenAPI / swagger -->
            <dependency>
                <groupId>io.swagger.core.v3</groupId>
                <artifactId>swagger-models</artifactId>
                <version>${swagger-models.version}</version>
            </dependency>
            <dependency>
                <groupId>org.springdoc</groupId>
                <artifactId>springdoc-openapi-ui</artifactId>
                <version>${springdoc.version}</version>
            </dependency>

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Nov 24, 2021
@snicoll
Copy link
Member

snicoll commented Nov 24, 2021

@Ed42 thanks for the report but that should be reported against the relevant project.

@snicoll snicoll closed this as completed Nov 24, 2021
@snicoll snicoll added for: external-project For an external project and not something we can fix and removed status: waiting-for-triage An issue we've not yet triaged labels Nov 24, 2021
@wilkinsona
Copy link
Member

The property in the action is incorrect. It should be spring.mvc.pathmatch.matching-strategy.

@wilkinsona wilkinsona reopened this Nov 24, 2021
@wilkinsona wilkinsona added type: bug A general bug and removed for: external-project For an external project and not something we can fix labels Nov 24, 2021
@wilkinsona wilkinsona added this to the 2.5.x milestone Nov 24, 2021
@wilkinsona wilkinsona changed the title Spring Boot 2.6.0 does not work with swagger-ui The name of the matching-strategy property is incorrect in the action message of the failure analysis for a PatternParseException Nov 24, 2021
@wilkinsona
Copy link
Member

Closing in favor of #28809.

@wilkinsona wilkinsona removed this from the 2.5.x milestone Nov 25, 2021
@wilkinsona wilkinsona added the status: superseded An issue that has been superseded by another label Nov 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: superseded An issue that has been superseded by another type: bug A general bug
Projects
None yet
Development

No branches or pull requests

4 participants