Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-17395

WebFlux.fn puts wrong type of HandlerMapping.BEST_MATCHING_PATTERN_ATTRIBUTE

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.1.1
    • Fix Version/s: 5.1.2
    • Component/s: Reactive, Web
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      SPR-17098 introduced RouterFunctions.MATCHING_PATTERN_ATTRIBUTE to WebFlux.fn, and set that mapping information as a String. SPR-17367 duplicated that same information in HandlerMapping.BEST_MATCHING_PATTERN_ATTRIBUTE with the same type, whereas it is expected to be of type PathPattern,
      https://github.com/spring-projects/spring-framework/blob/8de5c05af0015dca8aad94e474a33814c13539ad/spring-webflux/src/main/java/org/springframework/web/reactive/function/server/support/RouterFunctionMapping.java#L160-L165

      As a result, ClassCastException occurs after updating to Spring Boot 2.1.0.RC1 as Boot expects it as PathPattern

      https://github.com/spring-projects/spring-boot/blob/v2.1.0.RC1/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/web/reactive/server/WebFluxTags.java#L97-L98

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              arjen.poutsma Arjen Poutsma
              Reporter:
              making Toshiaki Maki
              Last updater:
              Spring Issuemaster
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                1 year, 36 weeks, 5 days ago