pivotal-cf / pivnet-cli

CLI to interact with Tanzu Network API V2 interface.
Apache License 2.0
34 stars 27 forks source link

Accept EULA Doesn't Work #23

Closed p4k1tz closed 6 years ago

p4k1tz commented 6 years ago

When trying to download product files from pivotal network using the 'dlpf' switch, --accept-eula does not work.

Further, the 'ae' or 'accept-eula' switch also does not work.

cf-gitbot commented 6 years ago

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/158912917

The labels on this github issue will be updated when the story is started.

vitakras commented 6 years ago

Hi @thagh05t

Can you provide us with debug information by running your command with --verbose?

p4k1tz commented 6 years ago
pivnet --verbose dlpf --accept-eula -p splunk-nozzle -r 1.0.1 -g '*.pivotal'

2018/07/09 12:14:57 Making request - [map[request:GET /api/v2/authentication HTTP/1.1
Host: network.pivotal.io
User-Agent: go-pivnet/0.0.51
Content-Type: application/json
Accept-Encoding: gzip

]]
2018/07/09 12:14:57 Response status code - [map[status code:200]]
2018/07/09 12:14:57 Response headers - [map[headers:map[X-Runtime:[0.013444] Connection:[keep-alive] Content-Type:[application/json] Date:[Mon, 09 Jul 2018 16:14:49 GMT] Strict-Transport-Security:[max-age=31536000; includeSubDomains] Vary:[Accept-Encoding] Cache-Control:[max-age=0, private, must-revalidate] Etag:[W/"b3a61a57ea7a95c498efed2b22a451e1"] X-Request-Id:[8179415d-ac33-4dae-92cb-14cbb603bf6f] X-Vcap-Request-Id:[c356bfee-de51-4b33-72b1-4e3cbf967d14]]]]
2018/07/09 12:14:57 Making request - [map[request:GET /api/v2/products/splunk-nozzle/releases HTTP/1.1
Host: network.pivotal.io
User-Agent: go-pivnet/0.0.51
Content-Type: application/json
Accept-Encoding: gzip

]]
2018/07/09 12:14:58 Response status code - [map[status code:200]]
2018/07/09 12:14:58 Response headers - [map[headers:map[Vary:[Accept-Encoding] X-Request-Id:[21afdac6-1276-4e8a-bd8f-c483cddcfdbf] X-Vcap-Request-Id:[0877f3bc-3907-4dca-66b1-e41beb4b6727] Content-Type:[application/json; charset=utf-8] Strict-Transport-Security:[max-age=31536000; includeSubDomains] X-Runtime:[0.041330] Connection:[keep-alive] Cache-Control:[max-age=0, private, must-revalidate] Date:[Mon, 09 Jul 2018 16:14:49 GMT] Etag:[W/"018e51044ca55a2a4eb803f2802d52e0"]]]]
2018/07/09 12:14:58 Making request - [map[request:GET /api/v2/products/splunk-nozzle/releases/92561 HTTP/1.1
Host: network.pivotal.io
User-Agent: go-pivnet/0.0.51
Content-Type: application/json
Accept-Encoding: gzip

]]
2018/07/09 12:14:58 Response status code - [map[status code:200]]
2018/07/09 12:14:58 Response headers - [map[headers:map[Etag:[W/"9581973e5cb0c75882a86b84a403e6a7"] Strict-Transport-Security:[max-age=31536000; includeSubDomains] Vary:[Accept-Encoding] X-Request-Id:[715f6327-724c-4ae4-bdbe-e6f05f80bde1] X-Runtime:[0.077924] X-Vcap-Request-Id:[62df080e-c4ce-4fe8-54d1-a91a049b3cd8] Cache-Control:[max-age=0, private, must-revalidate] Content-Type:[application/json; charset=utf-8] Date:[Mon, 09 Jul 2018 16:14:50 GMT] Connection:[keep-alive]]]]
2018/07/09 12:14:58 Making request - [map[request:GET /api/v2/products/splunk-nozzle/releases/92561/product_files HTTP/1.1
Host: network.pivotal.io
User-Agent: go-pivnet/0.0.51
Content-Type: application/json
Accept-Encoding: gzip

]]
2018/07/09 12:14:58 Response status code - [map[status code:200]]
2018/07/09 12:14:58 Response headers - [map[headers:map[Strict-Transport-Security:[max-age=31536000; includeSubDomains] Vary:[Accept-Encoding] X-Vcap-Request-Id:[80d83fbf-6245-4e1a-5b8f-3c2425ff0b80] Connection:[keep-alive] Cache-Control:[max-age=0, private, must-revalidate] Date:[Mon, 09 Jul 2018 16:14:50 GMT] Etag:[W/"289e6fa1ea603d04af00ede3c3f8c8d4"] X-Request-Id:[e55343b6-0a76-47d0-9ba4-5d9c7215a1a9] X-Runtime:[0.040315] Content-Type:[application/json; charset=utf-8]]]]
2018/07/09 12:14:58 Making request - [map[request:GET /api/v2/products/splunk-nozzle/releases/92561/file_groups HTTP/1.1
Host: network.pivotal.io
User-Agent: go-pivnet/0.0.51
Content-Type: application/json
Accept-Encoding: gzip

]]
2018/07/09 12:14:58 Response status code - [map[status code:200]]
2018/07/09 12:14:58 Response headers - [map[headers:map[Connection:[keep-alive] Content-Type:[application/json; charset=utf-8] Etag:[W/"5e5221ea60106d26cc0810de0beee6a0"] X-Vcap-Request-Id:[563c399c-5ac8-44c5-726e-88984c979f15] Strict-Transport-Security:[max-age=31536000; includeSubDomains] Vary:[Accept-Encoding] X-Request-Id:[0d6e0908-460f-4e37-9389-7fa19733e665] X-Runtime:[0.051250] Cache-Control:[max-age=0, private, must-revalidate] Date:[Mon, 09 Jul 2018 16:14:50 GMT]]]]
2018/07/09 12:14:58 filter.ProductFilesKeysByGlobs - [map[globs:[*.pivotal]]]
2018/07/09 12:14:58 Accepting EULA
2018/07/09 12:14:58 Making request - [map[request:POST /api/v2/products/splunk-nozzle/releases/92561/pivnet_resource_eula_acceptance HTTP/1.1
Host: network.pivotal.io
User-Agent: go-pivnet/0.0.51
Content-Length: 2
Content-Type: application/json
Accept-Encoding: gzip

{}]]
2018/07/09 12:14:58 Response status code - [map[status code:451]]
2018/07/09 12:14:58 Response headers - [map[headers:map[Content-Type:[application/json; charset=utf-8] Date:[Mon, 09 Jul 2018 16:14:50 GMT] Strict-Transport-Security:[max-age=31536000; includeSubDomains] X-Vcap-Request-Id:[aca40c75-34d1-4dbf-544f-14681cd4991c] Connection:[keep-alive] Cache-Control:[no-cache] Vary:[Accept-Encoding] X-Request-Id:[21db1ecb-8c86-4f75-9a90-d014f4742841] X-Runtime:[0.191823]]]]
user with email 'john.neal@sealedair.com' has not accepted the current EULA for release with 'id'=92561. Please manually accept the EULA via this URL: https://network.pivotal.io/products/135/releases/92561/eulas/165

Intentionally omitted Authorization header.

vitakras commented 6 years ago

For legal reasons, you cannot accept the EULA through the API. You have to accept the EULA through the UI via the link provided.

p4k1tz commented 6 years ago

Alright, that makes sense to me, but why include the option to automatically accept?

p4k1tz commented 6 years ago

Or, I guess we can just close this out and pretend like it isn't really an issue....

vitakras commented 6 years ago

This feature is only available to specific users as we generally require individuals to read the EULA. We will update the documentation to reflect this change and make it more clear for other users in the future. It's unfortunate that you are unable to fully automate it to the extent that you may like but, we are unable to do anything at this moment in regards to this issue.

rychannel commented 6 months ago

What's the point of the pivnet utility if you have to go use a web browser anyway? This is insane, even for 2018.