IBM / aspera-cli

IBM Aspera CLI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Faspex 4: ascli faspex packages list

voodoonofx opened this issue · comments

The current implementation of scanning a Faspex (4) box filters the list of packages to only packages sent directly to the user. However, the API call returns all packages that user can see, including packages sent to a dropbox/workgroup this user belongs to.

I'm proposing editing the current faspex package filtering to apply this filter if and only if a --recipient is given on the command line (https://github.com/IBM/aspera-cli/blob/main/lib/aspera/cli/plugins/faspex.rb#L176). Otherwise, it would be ideal to return all packages this user can see.

Example current run which shows that while 2 packages are available on this account, total items is zero, even though no --recipient is given on the command line.

D, [2023-04-12T10:56:37.528864 #2802312] DEBUG -- : new items: 2                                                                                                                                                                                                                                                  
D, [2023-04-12T10:56:37.528882 #2802312] DEBUG -- : total items: 0                                                                                                                                                                                                                                                
D, [2023-04-12T10:56:37.528894 #2802312] DEBUG -- : link:                                                                                                                                                                                                                                                         

With the EOL of Faspex 4, this likely becomes a moot point into the future, but would still be a more consistent handling of packages sent to dropboxes.

Hi,

Yes, good idea.

But two problems:

  1. The current way ascli computes a unique package id depends on the recipient name (user's or dropbox), so it's difficult to display a list of all packages with a unique package id.
  2. Effectively, as you mentioned: Faspex 4 is End of Support in Sept 30th, 2023...
  3. ascli on Faspex 5 allows listing all package together...