Affected Version: 2.1.8
What steps will reproduce the problem?
1. Start with a repository without any notes and a standard installation
2. Run the ExportReviewNote command as root.
What is the expected output? What do you see instead?
There are no warnings in the documents saying not to do this.
No warnings are generated by the command when you do this.
The command creates new files and directories within the MY_PROJECT.git/objects/ directory owned as root. When gerrit tries to modify these it fails. (See issue 1026).
Please provide any additional information below.
The command should probably check to see whether it is running as the configured container.user user. If it isn't then it should quit with an appropriate error message.