Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

No domain informed #8

Closed
rzancoper opened this issue Feb 11, 2020 · 2 comments · Fixed by #9
Closed

No domain informed #8

rzancoper opened this issue Feb 11, 2020 · 2 comments · Fixed by #9
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@rzancoper
Copy link

Hi @aharbis
I see that on the SOMA request there is no domain info, and so, files are pushed to 'default' domain.
In some scenarios (specially in test envs.) users are allowed to upload files only to their own domains, and so, in the way the tool is designed it will certainly fail into an auth. error.
I would suggest adding a command line parameter to get the domain name, and, if omitted, uses the 'default' domain.

@aharbis
Copy link
Member

aharbis commented Feb 11, 2020

Hey @rzancoper thanks for trying this tool out, and thanks for opening the issue.

I definitely can see some value in providing a --domain "name" option, so I'm more than happy to take this enhancement request.

In the meantime, you should be able to specify the full path from the default domain's perspective. This is because all application domain sub-directories exist within the default domain's filesystem. So for example if you had a domain sandbox and then a sub-directory foo in that domain, you could use the tool like this:

$ dp-file-uploader my.datapower.com "local:///sandbox/foo" file.txt

Alternatively, once this enhancement is implemented, the other form may look like:

$ dp-file-uploader --domain "sandbox" my.datapower.com "local:///foo/" file.txt

Hope this helps. Let me know if you have any other questions.

@aharbis aharbis added enhancement New feature or request good first issue Good for newcomers labels Feb 11, 2020
@aharbis aharbis closed this as completed in #9 Oct 7, 2020
@aharbis
Copy link
Member

aharbis commented Oct 7, 2020

@rzancoper This feature is now available in version 0.1.4.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants