jersey
  1. jersey
  2. JERSEY-1322

UriBuilder#userInfo does not work well

    Details

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

      Description

      This work well:

      String userInfo = "foo:foo";
      uri = UriBuilder.fromUri("http://localhost:8080").userInfo(userInfo).build();
      System.out.println(uri.getRawUserInfo()); //prints out foo:foo
      

      This does not work:

      uri = UriBuilder.fromUri("http://foo2:foo2@localhost:8080").userInfo(userInfo).build();
      System.out.println(uri.getRawUserInfo()); //prints null
      

        Activity

        Hide
        Marek Potociar added a comment -

        This is a bug in the Jersey UriBuilder implementation.

        Show
        Marek Potociar added a comment - This is a bug in the Jersey UriBuilder implementation.

          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 - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 2 hours
              2h