Uploaded image for project: 'Bamboo'
  1. Bamboo
  2. BAM-12043

Unable to link svn repositories to viewVC

    XMLWordPrintable

    Details

      Description

      Steps to replicate

      1. Create a Plan with subversion as the source repository
      2. Under the advanced tab of the repository configuration specify Generic web repository as described here
      3. Specify the viewVC URL to the repository. example http://localhost:49152/viewvc/Development/
      4. The above settings should make it possible for Bamboo to display in the code changes, the link to relevant files that have changed.
      5. This does not work and the code changes tab in the build summary page displays a tooltip "Unable to create URL - please check your Web Repository configuration" in place of the expected links
      6. The following is thrown in the logs
        2012-08-14 16:56:19,380 ERROR [qtp179274584-709] [runtime] Method public java.lang.String com.atlassian.bamboo.webrepository.DefaultWebRepositoryViewer.getWebRepositoryUrlForFile(com.atlassian.bamboo.commit.CommitFile,com.atlassian.bamboo.repository.RepositoryDefinition) threw an exception when invoked on com.atlassian.bamboo.webrepository.DefaultWebRepositoryViewer@69a13712
        
        Method public java.lang.String com.atlassian.bamboo.webrepository.DefaultWebRepositoryViewer.getWebRepositoryUrlForFile(com.atlassian.bamboo.commit.CommitFile,com.atlassian.bamboo.repository.RepositoryDefinition) threw an exception when invoked on com.atlassian.bamboo.webrepository.DefaultWebRepositoryViewer@69a13712
        The problematic instruction:
        ----------
        ==> assignment: fileLink=linkGenerator.getWebRepositoryUrlForFile(file, repositoryData)! [on line 30, column 24 in templates/plugins/webRepository/defaultCommitView.ftl]
         in user-directive ui.bambooInfoDisplay [on line 5, column 5 in templates/plugins/webRepository/defaultCommitView.ftl]
        ----------
        
        Java backtrace for programmers:
        ----------
        freemarker.template.TemplateModelException: Method public java.lang.String com.atlassian.bamboo.webrepository.DefaultWebRepositoryViewer.getWebRepositoryUrlForFile(com.atlassian.bamboo.commit.CommitFile,com.atlassian.bamboo.repository.RepositoryDefinition) threw an exception when invoked on com.atlassian.bamboo.webrepository.DefaultWebRepositoryViewer@69a13712
        	at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:130)
        	at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:104)
        	at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
        	at freemarker.core.DefaultToExpression._getAsTemplateModel(DefaultToExpression.java:100)
        	at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
        	at freemarker.core.Assignment.accept(Assignment.java:90)
        	at freemarker.core.Environment.visit(Environment.java:210)
        	at freemarker.core.MixedContent.accept(MixedContent.java:92)
        	at freemarker.core.Environment.visit(Environment.java:210)
        	at freemarker.core.IfBlock.accept(IfBlock.java:82)
        	at freemarker.core.Environment.visit(Environment.java:210)
        	at freemarker.core.MixedContent.accept(MixedContent.java:92)
        	at freemarker.core.Environment.visit(Environment.java:210)
        	at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:167)
        	at freemarker.core.Environment.visit(Environment.java:417)
        	at freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
        	at freemarker.core.Environment.visit(Environment.java:210)
        	at freemarker.core.MixedContent.accept(MixedContent.java:92)
        	at freemarker.core.Environment.visit(Environment.java:210)
        	at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:179)
        	at freemarker.core.Environment.visit(Environment.java:417)
        	at freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
        	at freemarker.core.Environment.visit(Environment.java:210)
        

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                6 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Last commented:
                  5 years, 37 weeks, 3 days ago