[GLASSFISH-19353] File upload of different files with same basename for option or operand with multiple=true works incorrectly Created: 16/Nov/12  Updated: 20/Dec/16

Status: Open
Project: glassfish
Component/s: command_line_interface
Affects Version/s: 4.0_dev
Fix Version/s: 4.1.1

Type: Bug Priority: Major
Reporter: Tom Mueller Assignee: Bhakti Mehta
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


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".

Comment by Tom Mueller [ 26/Mar/13 ]

Deferring to 4.0.1

Generated at Sat Apr 29 12:44:50 UTC 2017 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.