Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-1019

EntityTagDelegate fails to parse weak EntityTags

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.0.7.Final
    • 3.0.6.Final
    • jaxrs
    • None

      EntityTagDelegate.fromString(String) does not correctly handle quotes in weak tags.

      Thus the following test will fail:

      Assert.assertEquals(new EntityTag("1234", true), EntityTagDelegate.fromString("W/\"1234\""));
      

      The problem is, that the fist quote (after "W/") is not stripped from the value-String.

              patriot1burke@gmail.com Bill Burke (Inactive)
              jafrank_jira Jakob Frank (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: