Details
-
Bug
-
Resolution: Fixed
-
Low
-
None
-
None
-
None
-
Severity 2 - Major
-
2
-
Description
SVNKit contains bug related to new SVN filesystem format (introduced in SVN 1.9).
Prerequisites
- Any supported version of Fisheye
- connected SVN repository that uses filesystem format FSFS in version 7
- check if repository is vulnerable by running this command on SVN server
cat <path to repository>/db/format
- if repository is vulnerable, output will look similar to:
7 layout sharded 1000 addressing logical
- check if repository is vulnerable by running this command on SVN server
Symptoms
- IllegalArgumentException appears in log with similar stacktrace:
Caused by: java.lang.IllegalArgumentException at sun.nio.ch.FileChannelImpl.position(FileChannelImpl.java:278) [?:1.8.0_60] at org.tmatesoft.svn.core.internal.io.fs.FSFile.fill(FSFile.java:462) [svnkit-1.9.0-r10609-atlassian-hosted.jar:?] at org.tmatesoft.svn.core.internal.io.fs.FSFile.read(FSFile.java:367) [svnkit-1.9.0-r10609-atlassian-hosted.jar:?] at org.tmatesoft.svn.core.internal.io.fs.FSFile.readLine(FSFile.java:147) [svnkit-1.9.0-r10609-atlassian-hosted.jar:?] at org.tmatesoft.svn.core.internal.io.fs.FSRoot.readChange(FSRoot.java:311) [svnkit-1.9.0-r10609-atlassian-hosted.jar:?] at org.tmatesoft.svn.core.internal.io.fs.FSRoot.fetchAllChanges(FSRoot.java:273) [svnkit-1.9.0-r10609-atlassian-hosted.jar:?] at org.tmatesoft.svn.core.internal.io.fs.FSRevisionRoot.getChangedPaths(FSRevisionRoot.java:52) [svnkit-1.9.0-r10609-atlassian-hosted.jar:?] at org.tmatesoft.svn.core.internal.io.fs.FSRoot.detectChanged(FSRoot.java:293) [svnkit-1.9.0-r10609-atlassian-hosted.jar:?] at org.tmatesoft.svn.core.internal.io.fs.FSLog.fillLogEntry(FSLog.java:343) [svnkit-1.9.0-r10609-atlassian-hosted.jar:?] at org.tmatesoft.svn.core.internal.io.fs.FSLog.sendLog(FSLog.java:290) [svnkit-1.9.0-r10609-atlassian-hosted.jar:?] at org.tmatesoft.svn.core.internal.io.fs.FSLog.runLog(FSLog.java:162) [svnkit-1.9.0-r10609-atlassian-hosted.jar:?] at org.tmatesoft.svn.core.internal.io.fs.FSRepository.logImpl(FSRepository.java:383) [svnkit-1.9.0-r10609-atlassian-hosted.jar:?] at org.tmatesoft.svn.core.io.SVNRepository.log(SVNRepository.java:1038) [svnkit-1.9.0-r10609-atlassian-hosted.jar:?] at org.tmatesoft.svn.core.internal.wc2.remote.SvnRemoteLog.run(SvnRemoteLog.java:181) [svnkit-1.9.0-r10609-atlassian-hosted.jar:?] at org.tmatesoft.svn.core.internal.wc2.remote.SvnRemoteLog.run(SvnRemoteLog.java:35) [svnkit-1.9.0-r10609-atlassian-hosted.jar:?] at org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner.run(SvnOperationRunner.java:21) [svnkit-1.9.0-r10609-atlassian-hosted.jar:?] at org.tmatesoft.svn.core.wc2.SvnOperationFactory.run(SvnOperationFactory.java:1235) [svnkit-1.9.0-r10609-atlassian-hosted.jar:?]
- Fisheye pauses index/reindex of repository
Possible fix
Upgrade SVNKit to the version 1.9 or higher should resolve this bug. (Fix in SVNKit was introduced in version 1.9.0)
Workaround
Native SVN client should be used instead of bundled SVNKit. Instruction how to switch to native client.
Attachments
Issue Links
- relates to
-
FE-7049 Upgrade SVNKit to 1.9.3
- Closed