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

EntityTagDelegate fails to parse weak EntityTags

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: