Uploaded image for project: 'SonarJava'
  1. SonarJava
  2. SONARJAVA-3500

Support latest version of Play framework in S3330 and S2092

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.8
    • Component/s: Rules
    • Labels:

      Description

      The latest version of play framework introduced changes in their API, which has consequences on the results of rules S3330 and S2092.

      More specifically, two changes impact our test code, making them fail to compile:

      • Deprecated way to create a cookie play.mvc.Http.Cookie is now removed. Only one constructor remaining: play.mvc.Http.Cookie
        S2092 already correctly supports the remaining constructor, but not S3330. We should support it as well for S3330.
      • CookieBuilder.withMaxAge takes a Duration instead of an int.
        No impact on our rules.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              quentin.jaquier Quentin Jaquier
              Reporter:
              michael.gumowski Michael Gumowski
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Due:
                Created:
                Updated:
                Resolved: