Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-4172

namenode does not URI-encode parameters when building URI for datanode request

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.23.4
    • Fix Version/s: 2.0.3-alpha, 0.23.5
    • Component/s: namenode
    • Labels:
      None

      Description

      Param values such as

      foo&bar

      or

      foo=bar

      Are not escaped in Param.toSortedString()

      When these are given as, say, token parameter values, a string like

      &token=foo&bar&token=foo=bar

      is returned.

      1. HDFS-4172.patch
        10 kB
        Derek Dagit

        Activity

        Derek Dagit created issue -
        Derek Dagit made changes -
        Field Original Value New Value
        Attachment HDFS-4162.patch [ 12552912 ]
        Derek Dagit made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Target Version/s 3.0.0, 2.0.3-alpha, 0.23.5 [ 12320356, 12323274, 12323313 ]
        Fix Version/s 3.0.0 [ 12320356 ]
        Fix Version/s 2.0.3-alpha [ 12323274 ]
        Fix Version/s 0.23.5 [ 12323313 ]
        Derek Dagit made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        Derek Dagit made changes -
        Attachment HDFS-4162.patch [ 12552912 ]
        Derek Dagit made changes -
        Attachment HDFS-4172.patch [ 12552913 ]
        Derek Dagit made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Derek Dagit made changes -
        Description Param values such as

        foo&bar

        or

        foo=bar

        Are not escaped in Param.toSortedString()

        When these are given, a string like

        &renewer=renewer%3Dequal&token=token%26ampersand

        is returned.
        Param values such as

        foo&bar

        or

        foo=bar

        Are not escaped in Param.toSortedString()

        When these are given, a string like

        &renewer=rvalue&token=token&tvalue

        is returned.
        Derek Dagit made changes -
        Description Param values such as

        foo&bar

        or

        foo=bar

        Are not escaped in Param.toSortedString()

        When these are given, a string like

        &renewer=rvalue&token=token&tvalue

        is returned.
        Param values such as

        foo&bar

        or

        foo=bar

        Are not escaped in Param.toSortedString()

        When these are given as, say, token parameter values, a string like

        &token=foo&bar&token=foo=bar

        is returned.
        Derek Dagit made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        Derek Dagit made changes -
        Attachment HDFS-4172.patch [ 12552913 ]
        Derek Dagit made changes -
        Attachment HDFS-4172.patch [ 12553127 ]
        Derek Dagit made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Derek Dagit made changes -
        Attachment HDFS-4172.patch [ 12553127 ]
        Derek Dagit made changes -
        Attachment HDFS-4172.patch [ 12553146 ]
        Robert Joseph Evans made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Fix Version/s 3.0.0 [ 12320356 ]
        Fix Version/s 2.0.3-alpha [ 12323274 ]
        Fix Version/s 0.23.5 [ 12323313 ]
        Resolution Fixed [ 1 ]
        Thomas Graves made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Allen Wittenauer made changes -
        Fix Version/s 3.0.0 [ 12320356 ]

          People

          • Assignee:
            Derek Dagit
            Reporter:
            Derek Dagit
          • Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development