Repository navigation
Conversation
|
|
||
| str.delete(str.length() - 4, str.length()); | ||
| int diff = str.toString().trim().toLowerCase(Locale.ROOT).endsWith("where") ? 6 : 4; | ||
| str.delete(str.length() - diff, str.length()); |
There was a problem hiding this comment.
@Pearl1594 is there any unit test to check/cover this, could this cause a regression? Maybe explore a more localised fix that's limited to ssh-key based DaoImpl?
| } | ||
|
|
||
| str.delete(str.length() - 4, str.length()); | ||
| int diff = str.toString().trim().toLowerCase(Locale.ROOT).endsWith("where") ? 6 : 4; |
There was a problem hiding this comment.
@Pearl1594 I'd leave out the trim() it is not clear why the 6 or 4 like this (or add a comment, but I prefer the code to explain itself)
There was a problem hiding this comment.
+1, add comment if code is not self-explanatory.
|
@Pearl1594 |
|
This looks like a bugfix, should it be considered for 4.16.1 @sureshanaparti @nvazquez @DaanHoogland @weizhouapache |
|
Thanks @rohityadavcloud I agree, @sureshanaparti please include it on 4.16.1 if necessary |
|
@Pearl1594 Is this PR good to go in 4.16.1? If so, please address outstanding comment and rebase with 4.16. Thanks. |
Description
This PR fixes the issue noticed when listing all ssh key pairs including ones owned by projects. Exception:
Types of changes
Feature/Enhancement Scale or Bug Severity
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
Post Fix: