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

Variant Selection refuses supported language variant

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.3.4.Final
    • 2.3.1
    • jaxrs
    • None

      If a request contains Accept-Language: pt, then the variant pt-BR of the resource is also acceptable. But for RESTEasy it is not:

      Locale locale = new Locale("pt", "BR"); 
      List<Variant> variants = VariantListBuilder.newInstance().languages(locale).build();
      request.selectVariant(variants) // <-- returns null, should return the pt-BR variant
      

              patriot1burke@gmail.com Bill Burke (Inactive)
              clovis.seragiotto Clovis Seragiotto (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: