http://defect.opensolaris.org/bz/show_bug.cgi?id=19231

           Summary: MercurialRepository uses weak file checking
    Classification: Development
           Product: opengrok
           Version: unspecified
          Platform: ANY/Generic
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P3
         Component: misc
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


In certain methods MercurialRepository just cuts off leading repopath.length()
characters from the passed path without checking, that that the path actually
belongs to this repos. So it even operates on stuff with
!path.startsWith(repopath), which may lead to unexpected behavior. E.g.
JDBCHistoryCacheTest.testHasCacheForDirectory() should actually fail - test
should use assertFalse(...) and pass ...

Other repos may have the same problem.

-- 
Configure bugmail: http://defect.opensolaris.org/bz/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
opengrok-dev mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opengrok-dev

Reply via email to