You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gravitino.apache.org by "justinmclean (via GitHub)" <gi...@apache.org> on 2025/08/14 06:36:51 UTC

[I] [Improvement] Potential NullPointerException in parsing the managed property when creating filesets [gravitino]

justinmclean opened a new issue, #8083:
URL: https://github.com/apache/gravitino/issues/8083

   ### What would you like to be improved?
   
   In clients/cli/src/main/java/org/apache/gravitino/cli/commands/CreateFileset.java, this line in handle() could cause a NPE if the property doesn't exist.
   ```
   boolean managed = properties.get("managed").equals("true");
   ```
   
   Here a test showing that:
   ```
    @Test
     void testOperationStatusNullHandling() {
       Assertions.assertDoesNotThrow(() -> CompatibilityUtils.toAuditLogStatus(null));
       Assertions.assertEquals(Status.UNKNOWN, CompatibilityUtils.toAuditLogStatus(null));
     }
   ```
   
   ### How should we improve?
   
   Defaulting to external mode if the property is missing.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Improvement] Potential NullPointerException in parsing the managed property when creating filesets [gravitino]

Posted by "justinmclean (via GitHub)" <gi...@apache.org>.
justinmclean closed issue #8083: [Improvement] Potential NullPointerException in parsing the managed property when creating filesets
URL: https://github.com/apache/gravitino/issues/8083


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Improvement] Potential NullPointerException in parsing the managed property when creating filesets [gravitino]

Posted by "justinmclean (via GitHub)" <gi...@apache.org>.
justinmclean commented on issue #8083:
URL: https://github.com/apache/gravitino/issues/8083#issuecomment-3187236455

   Thanks for wanting to help.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Improvement] Potential NullPointerException in parsing the managed property when creating filesets [gravitino]

Posted by "JeonDaehong (via GitHub)" <gi...@apache.org>.
JeonDaehong commented on issue #8083:
URL: https://github.com/apache/gravitino/issues/8083#issuecomment-3187230507

   I will work on resolving this issue.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@gravitino.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org