implementation of WFLY-2510 - #89
Conversation
|
Can one of the admins verify this patch? |
|
this is ok to test |
|
@darranl @aloubyansky please approve |
There was a problem hiding this comment.
It would be better to extend CommandHandlerWithHelp and write a simple txt file with the description of the command or implement --help/-h argument otherwise.
|
Hi, take a look, thanks. |
|
Build 201 outcome was FAILURE using a merge of 18e143f Build problems:Process exited with code 1 |
|
Ah, had some issues with git merge and commit, sorry. |
There was a problem hiding this comment.
Looks good. I meant to keep the class public but the constructor and the setters could have the default access modifier, so they are not visible outside the package.
There was a problem hiding this comment.
Actually, if you don't mind, let's introduce a ConnectionInfo interface (which will expose only the get-methods) and simply add a method to CommandContext, e.g. ConnectionInfo getConnectionInfo(). Thanks!
|
Hi, take a look now. Thanks. |
There was a problem hiding this comment.
Yes, this looks better now. The final thing though... :) Sorry, I missed it before. There is a method disconnectController() in this class. This method could be called by a user or if the cli receives a connection closed notification. Anyway, to keep the connection info consistent it has to be reset in this method too.
Thanks a lot!
There was a problem hiding this comment.
What if the connection actually fails? I think in that case you should reset the just initialized connection info in the catches below.
There was a problem hiding this comment.
It is now 2014 - all new classes should reflect this in the copyright header.
use SimpleTable for output added simple test added help text
…dContext to isolate responsibility
…ction is sucessfull
|
Sorry if you wouldn't mind I would suggest instead of authenticated as it may be better to say 'granted role' and 'granted roles'. |
|
I also added the message when there is no role associated when using rbac [standalone@localhost:9993 /] connection-info |
|
Hi @darranl, I think all remaining issues are fixed. |
|
@darranl @aloubyansky since there's been a fair bit of back and forth on this one, please give it a final +1 so I know all issues are addressed and can merge it. |
|
Claudio, thanks so much! Before merging, I need to get an answer to a question: We require that all contributions be made under the terms of the MIT License, http://www.opensource.org/licenses/mit-license.php. Do you agree to the these terms? |
|
Yes and thanks a lot from me! |
|
On Thu, Aug 28, 2014 at 8:53 AM, Brian Stansberry notifications@github.com
Yes. Claudio Miranda |
implementation of WFLY-2510
|
Thanks! |
[JBEAP-2490][WFCORE-1240] Call the non-deprecated variant
Add CLI command to display information about current connection.