Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Faspex5 Multiple Matching contact for distribution list #120

Closed
Gerardo-Parker opened this issue Aug 18, 2023 · 3 comments
Closed

Faspex5 Multiple Matching contact for distribution list #120

Gerardo-Parker opened this issue Aug 18, 2023 · 3 comments
Assignees
Labels
customer request Request from end users enhancement New feature or request

Comments

@Gerardo-Parker
Copy link

Gerardo-Parker commented Aug 18, 2023

Using faspex5 package send

if a distribution list contains the same email in a distribution list the package sends to fail.
example:

{"recipients":["email1@google.com", "distributionlistwithemail1@google.com"]}

Is there an option that can be provided to the package info payload to ignore duplicate emails. I work with several 3rd party companies and occasionally their distribution lists overlap across teams.

@laurent-martin laurent-martin self-assigned this Aug 19, 2023
@laurent-martin laurent-martin added enhancement New feature or request customer request Request from end users labels Aug 19, 2023
@laurent-martin
Copy link
Member

laurent-martin commented Aug 19, 2023

If names are specified as a list, then a lookup is performed on all recipient types.
lookup is case insensitive and based on substring.
(This will be fixed in the next version, where it will be an exact match).

The workaround in 4.13 and - is to specify that's it's the exact name:

{"recipients":[{"name":"email1@google.com"},{"name":"distributionlistwithemail1@google.com"}]}

You can also set the type of user, if necessary:

  • user
  • workgroup
  • external_user
  • distribution_list
  • shared_inbox

e.g. if both are registered users, then :

{"recipients":[{"type":"user","name":"email1@google.com"},{"type":"user","name":"distributionlistwithemail1@google.com"}]}

refer to Faspex 5 api:
https://developer.ibm.com/apis/catalog/aspera--ibm-aspera-faspex-5-0-api/api/API--aspera--ibm-aspera-faspex-api#createPackageRecord

Beta of next version , if you want to test (gem install ...):

https://ibm.biz/aspera-cli-beta

And doc for next version:

https://github.com/IBM/aspera-cli/tree/develop#faspex-5-send-a-package

@Gerardo-Parker
Copy link
Author

Gerardo-Parker commented Aug 23, 2023

I updated from 4.12.0 to 4.14.0 preview and tried updating the payload to use [{"name": "email"}], I was still running into some issues with sending the package with a distro list still marking as invalid parameter but got around the issue by forcing the type to external_user.

@laurent-martin
Copy link
Member

Thanks for the feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer request Request from end users enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants