jmark99 opened a new issue, #3495:
URL: https://github.com/apache/accumulo/issues/3495
**Describe the bug**
There are two parts to this issue. If a user is in the shell and the idle
time has elapsed, when returning to the shell a message is displayed indicating
that re-authentication should occur. Assuming the password in
`accumulo-client.properties` is correct, the shell automatically authenticates
and things proceed as normal. In this situation, an updated message to the
user would be sufficient.
But as a test to verify that re-authentication would be required if the
password did not match, a test was performed where the password within
`accumulo-client.properties `was altered after initial setup. In this
situation, after the idle time has elapsed, entering a command in the shell
immediately triggers an endless loop displaying a mixture of `Invalid password`
messages along with exception messages. The user is never offered the
opportunity to supply the correct authentication password.
The output on Ubuntu was similar to the following with the messages
continuing indefinitely until the shell process was killed in another terminal
window.
```
Invalid password. Invalid password. Invalid password. Invalid password.
Invalid password. Invalid password. Invalid password. Invalid password. Invalid
password. Invalid password. Invalid password. Invalid password. Invalid
password. Invalid password. Invalid password. Invalid password. Invalid
password. Invalid password. Invalid password. Invalid password. Invalid
password. Invalid password. Invalid password. Invalid password. Invalid
password. Invalid password. Invalid password
2023-06-14T13:29:15,880 [shell.Shell]
ERROR:org.apache.accumulo.core.client.AccumuloException:
java.io.UncheckedIOException: java.nio.channels.ClosedByInterruptException
2023-06-14T13:29:15,880 [shell.Shell] ERROR:
org.apache.accumulo.core.client.AccumuloException:
java.io.UncheckedIOException: java.nio.channels.ClosedByInterruptException
2023-06-14T13:29:15,880 [shell.Shell] ERROR:
org.apache.accumulo.core.client.AccumuloException:
java.io.UncheckedIOException: java.nio.channels.ClosedByInterruptException
2023-06-14T13:29:15,880 [shell.Shell] ERROR:
org.apache.accumulo.core.client.AccumuloException:
java.io.UncheckedIOException: java.nio.channels.ClosedByInterruptException
Invalid password. Invalid password. Invalid password. Invalid password.
Invalid password. Invalid password. Invalid password. Invalid password.
```
**Versions :**
- Affected version(s) of this project: 2.1.x
- OS: Ubuntu and CentOs were tested
- Java 11
**To Reproduce**
Fluo-Uno was used to instantiate an instance of Accumulo-2.1.1
1. `uno fetch accumulo`
3. `uno setup accumulo`
4. Modify `accumulo-2.1.1/conf/accumulo-client.properties` such that the
user password is incorrect.
5. `accumulo shell -u root -p secret --auth-timeout 1`
6. Wait greater than 60 seconds and then perform a shell command such as
`whoami`
7. Endless loop should begin at that point.
**Expected behavior**
I would expect the shell to allow the user to input the correct password and
continue using the shell in a normal manner.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]