jersey
  1. jersey
  2. JERSEY-1324

UriBuilder#uri(String) does not throw IllegalArgumentException

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-m05
    • Fix Version/s: 2.0-m07, 2.0
    • Component/s: core
    • Labels:
      None

      Description

      javadoc UriBuilder#uri says:

      Throws:
      IllegalArgumentException - if uriTemplate is not a valid URI template

      but

      String sUri = "http ftp xml//:888:888/1:8080:80";
      UriBuilder.fromMethod(Resource.class, "sub").uri(sUri); //does not throw any exception
      new URI(sUri); //throws URISyntaxException
      

        Issue Links

          Activity

          Hide
          jan.supol added a comment -

          The fix is not working. It's still doing the same.

          Show
          jan.supol added a comment - The fix is not working. It's still doing the same.

            People

            • Assignee:
              Marek Potociar
              Reporter:
              jan.supol
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 3 hours
                3h
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours
                3h