You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the owner is not populated? I added some tests in version 1.5.3 and I couldnt reproduce it. If you can attach some tests or give me more context, I will try to investigate it and add some checks.
Even I am facing NPE in the same way. This happened when I am using minio as S3 simulator that does not support ACLs. Because of this the Owner gets populated with null id and null name when a call to GET /minio-test/?acl is made. The response for this http call is <AccessControlPolicy><Owner><ID></ID><DisplayName></DisplayName></Owner><AccessControlList><Grant><Grantee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="CanonicalUser"><Type>CanonicalUser</Type></Grantee><Permission>FULL_CONTROL</Permission></Grant></AccessControlList></AccessControlPolicy>[\r][\n].
In the following code in S3AccessControlList class we get NPE at line marked with ** below.
Grant grant;
do {
if (!var2.hasNext()) {
return false;
}
grant = (Grant)var2.next();
**} while(!grant.getGrantee().getIdentifier().equals(this.owner.getId()) || !permissions.contains(grant.getPermission()));`
return true;
}
Checking for readable, like:
results in a NPE. The problem is that the owner is not always populated here
The text was updated successfully, but these errors were encountered: