glassfish
  1. glassfish
  2. GLASSFISH-19353

File upload of different files with same basename for option or operand with multiple=true works incorrectly

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 4.0_b62_ms6
    • Fix Version/s: 4.1
    • Component/s: command_line_interface
    • Labels:
      None

      Description

      If an AdminCommand has a File option with multiple=true:

      class SomeCommand implements AdminCommand {
      @Param(multiple=true) File[] a;
      ...
      }

      and the command is invoked like this:

      asadmin some-command --upload=true --a dir1/a --a dir2/a

      only one of the two files will be uploaded.

      This is because the asadmin file upload mechanism uses the basename of the file and the name of the option to save the file in a temporary location on the server and here, the basename/option name is not unique.

      This problem is also there for the operand (when primary=true) because the option name used in that case is "DEFAULT".

        Activity

        Hide
        Tom Mueller added a comment -

        Deferring to 4.0.1

        Show
        Tom Mueller added a comment - Deferring to 4.0.1

          People

          • Assignee:
            Bhakti Mehta
            Reporter:
            Tom Mueller
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: