Hadoop Common
  1. Hadoop Common
  2. HADOOP-462

DFSShell throws out arrayoutofbounds exceptions if the number of arguments is not right

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.8.0
    • Component/s: None
    • Labels:
      None

      Description

      All the DFSShell commands do not check for the number of arguments. In DFSShell.run(), the args length is not checked before calling copyfromlocal, movefromlocal, copytolocal, and some others as well. This throws out arrrayoutofbounds exception in case lesser number of arguments is specified.

      1. dfsshell.patch.3
        15 kB
        dhruba borthakur

        Activity

        Mahadev konar created issue -
        dhruba borthakur made changes -
        Field Original Value New Value
        Assignee dhruba borthakur [ dhruba ]
        dhruba borthakur made changes -
        Attachment dfsshell.patch [ 12342842 ]
        dhruba borthakur made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Doug Cutting made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        dhruba borthakur made changes -
        Attachment dfsshell.patch.2 [ 12343037 ]
        dhruba borthakur made changes -
        Attachment dfsshell.patch [ 12342842 ]
        dhruba borthakur made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Doug Cutting made changes -
        Status Patch Available [ 10002 ] Open [ 1 ]
        dhruba borthakur made changes -
        Attachment dfsshell.patch.3 [ 12343137 ]
        dhruba borthakur made changes -
        Attachment dfsshell.patch.2 [ 12343037 ]
        dhruba borthakur made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Doug Cutting made changes -
        Fix Version/s 0.8.0 [ 12312098 ]
        Resolution Fixed [ 1 ]
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Doug Cutting made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Owen O'Malley made changes -
        Component/s dfs [ 12310710 ]

          People

          • Assignee:
            dhruba borthakur
            Reporter:
            Mahadev konar
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development