Details
-
Bug
-
Resolution: Fixed
-
Low
-
None
-
3
-
Severity 2 - Major
-
1
-
Description
Summary
- When using Windows, adding a Branch Permission to a Branch by name at the Project level with "*" in the name causes 500 errors
Environment
(Optional - If Applicable)
- Windows
Steps to Reproduce
- Go to Projects >> {Project_Name\ >> Settings >> Branch Permissions.
- Add a Branch Permission with the following selections:
Branch Name: * Prevent all changes
- Go to Repositories >> {Repository_Name} >> Branch Permissions for a repository in the project.
Expected Results
- Branch Names would not allow '*' as that character is an invalid character in Windows paths
Actual Results
The below exception is thrown in the atlassian-bitbucket.log file:
2017-08-23 08:52:26,885 ERROR [http-nio-7990-exec-6] o.a.c.c.C.[.[.[/].[plugins] Servlet.service() for servlet [plugins] in context with path [] threw exception java.nio.file.InvalidPathException: Illegal char <*> at index 0: * at sun.nio.fs.WindowsPathParser.normalize(Unknown Source) at sun.nio.fs.WindowsPathParser.parse(Unknown Source) at sun.nio.fs.WindowsPathParser.parse(Unknown Source) at sun.nio.fs.WindowsPath.parse(Unknown Source) at sun.nio.fs.WindowsFileSystem.getPath(Unknown Source) at sun.nio.fs.AbstractPath.resolve(Unknown Source)
Workaround
Omit '*' from the path name.