Loading the repositories list in the Administration panel fails with 500 Server Error
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Fisheye および Crucible は除く
要約
After upgrading Fisheye to 4.8.9, attempting to load repositories list in the administration panel results in the following 500 Server Error:
In addition, the application log reports the following error:
2022-04-12 11:00:37,455 ERROR [qtp123456789-32327 url: /cru/home, /cru/home.do, /WEB-INF/jsp/crucible/home/dashboard.jsp; user: test_user ] fisheye DefaultSCMModuleManager-getRepositories - problem getting repositories for SCMModule FileSystem [LightSCM]
com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.RuntimeException: Error reading configuration: [B@409c4eb3
at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:149) [atlassian-util-concurrent-3.0.0.jar:?]
... (truncated)
Caused by: java.lang.RuntimeException: Error reading configuration: [B@409c4eb3
at com.atlassian.fisheye.plugins.scm.utils.ConfigurableSCMModule.getConfiguration(ConfigurableSCMModule.java:59) [?:?]
... (truncated)
Caused by: com.thoughtworks.xstream.converters.ConversionException:
---- Debugging information ----
... (truncated)
Caused by: com.thoughtworks.xstream.security.ForbiddenClassException: com.atlassian.crucible.plugins.scm.filesystem.FileSystemRepositoryConfiguration
at com.thoughtworks.xstream.security.NoTypePermission.allows(NoTypePermission.java:26) [xstream-1.4.18.jar:1.4.18]
... (truncated)
環境
- Fisheye 4.8.9
診断
The error in the logs indicates there is at least one repository configured via the legacy Light SCM plugin, which has been configured by following these steps:
- Going to Administration > Repositories
- Clicking the Plugins tab
- Clicking in Configure Plugin... under the FileSystem [LightSCM] tab
- Clicking in Add a repository
- Entering anything for the Name and Base Path values
- Clicking Save
- Reloading the repositories list in the Administration panel after following these steps will lead to this error.
原因
This is a confirmed bug in 4.8.9 that was introduced by a recent upgrade of the XStream
library, and it will be fixed in 4.8.10
ソリューション
- Open
FISHEYE_INST\var\plugins\config\com.atlassian.crucible.plugins.crucible-filesystem-scm-plugin_scmprovider.config
with a text editor Clear out all the entries found in this file in order to remove all repositories configured via Light SCM. The only remaining lines in that file should be:
<list> </list>
- Save the changes to the file
- Restart the Fisheye service