1 Answers
Hi Amit. I just tried what you did:
1. Create a new fine-grain bucket.
2. Uploaded an image.
3. Changed permissions for the image to include "Public"
4. Copied the new link and viewed in browser.
5. Changed permissions again to remove "Public"
6. Opened another browser and tried the link. Got this message: "AccessDeniedAccess denied.Anonymous caller does not have storage.objects.get access to the Google Cloud Storage object."
You may see the image in the same browser in a different tab for a bit because of caching. I find that Chrome is really tenacious when it comes to caching. However, no one else – even if they have the URL – will be able to view the image.
Hope this helps – Joe
Hi – I had the same problem as Amit. In fact, when I removed the public file permission, the bucket list page was still showing the permission as ‘Public’ and when I opened the Edit permissions tab, the public permission was still there – almost as if the change had not taken effect. The public file url continued to work in Chrome Incognito even after I deleted the bucket! Only when I tried Firefox did I get the ‘No such bucket’ error message. Really weird!