• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • viewVC-plugin
    • None
    • Platform: All, OS: Linux

      When viewVC is configured with multiple repositories, it expects the repository
      to be specified in the URL it's asked for. It refers to the repository as the
      "root".

      My viewvc has the option root_as_url_component = 1 enabled.

      Svn URL: svn://server/project/foo/blah
      svn info ->
      .. Repository Root: svn://server/project ..

      ViewSVN URL in job configuration: http://svn/viewvc/

      Actual URL generated by Hudson: http://server/viewvc/?rev=30&view=revision
      URL generated by ViewVC itself: http://server/viewvc/project?
      view=revision&revision=30

      Note also that a Hudson job can refer to multiple svn urls, that is, a job could
      be doing something like:

      svn co svn://server/tools/blah
      svn co svn://server/src/baz
      blah/go.sh baz

      That is, the viewvc url can't be set to either http://server/viewvc/tools or
      http://server/viewvc/src.

      ViewVC 1.1.2
      Hudson ver. 1.328
      Sun Java6 / Tomcat6 / Linux2.6 / svn1.6 / etc.

          [JENKINS-4860] No support for multi-repository viewVC

          Dirk Haun added a comment -

          I think I'm seeing the same problem. The plugin is producing links like

          http://svn.example.com/viewvc/?view=rev&root=&revision=57577
          http://svn.example.com/viewvc/?view=rev&root=&revision=2082
          

          The first link is correct, due to the default handling for what "root" is, but the second link should go to a different SVN repository.

          It's almost there - we only need a way to tell the ViewVC plugin to put the repository name after the root= parameter (ViewVC plugin 1.3 here).

          Dirk Haun added a comment - I think I'm seeing the same problem. The plugin is producing links like http://svn.example.com/viewvc/?view=rev&root=&revision=57577 http://svn.example.com/viewvc/?view=rev&root=&revision=2082 The first link is correct, due to the default handling for what "root" is, but the second link should go to a different SVN repository. It's almost there - we only need a way to tell the ViewVC plugin to put the repository name after the root= parameter (ViewVC plugin 1.3 here).

          Duc Quoc added a comment -

          It has been fixed in 1.6 (and probably 1.5 and 1.4, but I haven't checked yet).
          The UI, besides URL field, has a field to enter your repository, for example: 'myproject' and then the generated will be like:

          http://svn.example.com/viewvc/?view=rev&root=myproject&revision=57577
          http://svn.example.com/viewvc/trunk/some/more/path/file.txt?view=rev&root=myproject&revision=2082

          Can anybody (besides reporter) can verify and close this issue?

          Duc Quoc added a comment - It has been fixed in 1.6 (and probably 1.5 and 1.4, but I haven't checked yet). The UI, besides URL field, has a field to enter your repository, for example: 'myproject' and then the generated will be like: http://svn.example.com/viewvc/?view=rev&root=myproject&revision=57577 http://svn.example.com/viewvc/trunk/some/more/path/file.txt?view=rev&root=myproject&revision=2082 Can anybody (besides reporter) can verify and close this issue?

          Adam Gabryś added a comment -

          I agree with Duc Quoc - this bug was fixed in previous releases. Can you close this bug?

          Adam Gabryś added a comment - I agree with Duc Quoc - this bug was fixed in previous releases. Can you close this bug?

          Michael Rumpf added a comment -

          Closing ticket as suggested in the latest comments.

          Michael Rumpf added a comment - Closing ticket as suggested in the latest comments.

            mirumpf Michael Rumpf
            faux faux
            Votes:
            3 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: