Uploaded image for project: 'Maven SCM'
  1. Maven SCM
  2. SCM-598

String index out of bounds while trying to commit limited file set to Git

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4
    • 1.5
    • None
    • Ubuntu 10
    • Patch

    Description

      I encountered String index out of bounds while trying to commit limited file set to Git.

      if statement was checking if file's absolute path was starting with working directory absoulute path, but stripping absoulute path from the value returned by getPath(). At least in Linux this getPath and getAbsolutePath did not return the same.

      I have actually submitted the fix to Github repo, but it appeared to be a wrong place Attachment has screenshot with diff from Github.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            struberg Mark Struberg
            aleksandr.zuikov Aleksandr Zhuikov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment