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/07 05:48:33 UTC

[I] [Improvement] Create a Names from just white space shodul not be allowed [gravitino]

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

   ### What would you like to be improved?
   
   Update this test to teh following and the test will fail.
   ```
     @Test
     public void testFromStringInvalidArgs() {
       Assertions.assertThrows(IllegalArgumentException.class, () -> Namespace.fromString(null));
       Assertions.assertThrows(IllegalArgumentException.class, () -> Namespace.fromString(".a"));
       Assertions.assertThrows(IllegalArgumentException.class, () -> Namespace.fromString("a."));
       Assertions.assertThrows(IllegalArgumentException.class, () -> Namespace.fromString("a..b"));
       Assertions.assertThrows(IllegalArgumentException.class, () -> Namespace.fromString(" "));
     }
   ```
   
   
   
   ### How should we improve?
   
   Update Namespace.fromString to throw a IllegalArgumentException if given a namespace that is just whitespace


-- 
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] Create a Names from just white space should not be allowed [gravitino]

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

   Hi @ibrahim307le, thanks for offering to help. @yossev, it would have been best to pick an issue that someone else hadn't asked to do, but thanks for the PR.


-- 
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] Creating a namespace from just white space should not be allowed [gravitino]

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

   > [@yossev](https://github.com/yossev) I think you've made the fix too wide and it will now not allow namespace names containing a space.
   
   Wokring on a fix!


-- 
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] Create a Names from just white space shodul not be allowed [gravitino]

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

   can you assign this issue to me, i can able to fix this with my knowledge and learnings. kindly assign this for my contribution to your project.


-- 
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] Create a Names from just white space should not be allowed [gravitino]

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

   > Hi [@ibrahim307le](https://github.com/ibrahim307le), thanks for offering to help. [@yossev](https://github.com/yossev), it would have been best to pick an issue that someone else hadn't asked to do, but thanks for the PR.
   
   Thanks for the feedback! I noticed the issue wasn’t officially assigned, so I went ahead with a solution, but I totally understand the need to avoid overlap. I’ll be more mindful about checking for ongoing interest next time.
   
   Please let me know if there’s anything you'd like me to adjust in the PR. Appreciate the chance to contribute!


-- 
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] Create a Names from just white space shodul not be allowed [gravitino]

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

   Hi @justinmclean ,
   
   I’ve reviewed this issue and would love to contribute a fix. Would it be possible to assign this to me?
   
   Thanks in advance!
   


-- 
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] Creating a namespace from just white space should not be allowed [gravitino]

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

   @yossev I think you've made the fix too wide and it will now not allow namespace names containing a space.


-- 
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] Create a Names from just white space shodul not be allowed [gravitino]

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

   Working on a fix.
   


-- 
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] Create a Names from just white space shodul not be allowed [gravitino]

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

   This PR is ready for review.
   Please let me know if any further changes or clarifications are needed.
   


-- 
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