OptimizeRasters icon indicating copy to clipboard operation
OptimizeRasters copied to clipboard

Google Cloud Storage bucket cleared out in GP Tool

Open slibby opened this issue 2 years ago • 2 comments

When trying to run the OptimizeRasters tool from the .pyt, there appears to be an issue with the Tool Validation logic.

I have a credential file with GetObject privileges to the bucket, when I specify the bucket name, then click to another parameter, it does some processing (some ToolValidation I assume) and then immediately clears out the value.

87B74847-0549-48D6-9890-F503CA4C5EFF

I am guessing this may be because it tries to do a ListBuckets query or something similar to that, to populate a dropdown?

slibby avatar Apr 06 '22 15:04 slibby

I think this comes down to the validateCredentials method, which has exception handling for AWS and Azure when ListBuckets is not allowed, but not for Google:

image

slibby avatar Apr 06 '22 15:04 slibby

@slibby Can you check if running it at the console works for you, and you're right, it looks like a UI issue. Will see to rectify, thanks!

Chamlika avatar Apr 13 '22 13:04 Chamlika