It would be helpful to have the option to prevent attachments of a certain file type.
A specific use case would be to prevent executable files from being uploaded as an attachment to a review eg.:
The application allows only a set of file types, which, depending on the situation could be pdf, txt, images, etc. The application would avoid allowing files containing executable/script files (EXE, AS, JAR, MSI, BAT).
Using the File types/extensions mentioned in the use case the following Byteman script was written and tested against Fisheye running on a Linux machine:
This should also work on a Windows host machine however, if there are SVN repos added in a Windows environment where Fisheye is started as a service, the boot path must be specified when enabling Byteman, eg.:
1. Go to <Fisheye installation directory>\bin and execute either service.bat manage or prunmgr.exe "//ES//<SERVICE_NAME>", where <SERVICE_NAME> is the Windows Service name used by Fisheye.
2. In the Atlassian Fisheye Properties window that will open, go to Java tab
3. Add the following in a new line in Java Options field:
Replacing the path placeholders accordingly.
4. Go to General tab, then stop and start the service
If this is not done, enabling Byteman could lead to an issue where SVN stops working and class loader exceptions are thrown.