[KARAF-6321] - add configuration options to protect against CTRL-D/shell:logout exits#1627
[KARAF-6321] - add configuration options to protect against CTRL-D/shell:logout exits#1627awrb wants to merge 2 commits intoapache:mainfrom
Conversation
| command = null; | ||
| boolean disableEofExit = (boolean) session.get(Session.DISABLE_EOF_EXIT); | ||
| if (disableEofExit) { | ||
| command = ""; |
There was a problem hiding this comment.
I tested it manually and it works fine but I couldn't figure out a way to write a test for this (e.g. how to send CTRL-D to Karaf in a pax exam test, or some other way)
There was a problem hiding this comment.
That's actually pretty hard in pax-exam as it controls the lifecycle. Manual test is fine and enough IMHO.
jbonofre
left a comment
There was a problem hiding this comment.
Overall, it looks good (I will take a deeper look). Do you mind to update the document (in the manual module) ?
|
Sure @jbonofre I will do it in a couple of hours. Actually some of my other pull requests might also need a change in the
|
|
I updated |
jbonofre
left a comment
There was a problem hiding this comment.
Thanks for the documentation update! I will squash and merge.
No description provided.