Subversion plugin not doing variable substitution for ${path} in "Changeset Format" URL

We've installed an configured the subversion plugin. SVN commits are being properly linked to JIRA issues. However, when looking at an issue, on the subversion tab, clicking the revision number will go to a URL like:

https://xxxx.browse.cvsdude.com/cgi-bin/siteplan$%7bpath%7d?revision=14047&pathrev=14047&view=rev

Note the $%7bpath%7d in the URL instead of the path. This results in a 404 from the ViewVC server.

The link to the file diff, however, does translate ${path} properly.

4 answers

This widget could not be displayed.

I went back and forth with Atlassian on this for 15 days. They could would not acknowlege that there is a problem. Even though I'd clearly demonstrate that the problem is due to the plugin not doing a pattern/var substituion, I'd get back strange responses like "oh, it's probably an issue with you proxy server" or "it's probably a UTF-8 issue". Very frustrating, I eventually gave up.

If you want to try, feel free to reference case JSP-147757, as it details the problem very clearly.

This widget could not be displayed.

I went back and forth with Atlassian on this for 15 days. They could would not acknowlege that there is a problem. Even though I'd clearly demonstrate that the problem is due to the plugin not doing a pattern/var substituion, I'd get back strange responses like "oh, it's probably an issue with you proxy server" or "it's probably a UTF-8 issue". Very frustrating, I eventually gave up.

If you want to try, feel free to reference case JSP-147757, as it details the problem very clearly.

This widget could not be displayed.

After working with Atlassian support on this issue, I discovered two relevant items.

  1. They provided substitution patterns that caused ${path} substitution to start working.
  2. Once path substitution was working, I discovered through trial and error that our viewvc configuration didn't like the "root" URL parameter. I removed that parameter and included the root as an explicit portion of the pattern.

Here are the patterns that worked for me:

Changeset Format: http://subversion.xxxx.local:81/viewvc/SS01?revision=${rev}&pathrev=${rev}&view=rev
File Added Format: http://subversion.xxxx.local:81/viewvc/SS01${path}?pathrev=${rev}
File Modified Format: http://subversion.xxxx.local:81/viewvc/SS01${path}?pathrev=${rev}&view=diff&r1=${rev}&r2=${rev-1}&diff_format=h
File Replaced Format: http://subversion.xxxx.local:81/viewvc/SS01${path}/?revision=${rev}&view=markup
File Deleted Format: http://subversion.xxxx.local:81/viewvc/SS01${path}?pathrev=${rev-1}</span<>>

But now you aren't using $path in your Changeset Format

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted 9 hours ago in Featured Groups

Hi! I'm Cameron Deatsch, Head of Server at Atlassian and I'm hosting an AMA next week.

Hey team! I'm Cameron Deatsch, Head of Server at Atlassian. I'll be hosting an AMA over in our Questions section of the Community next Monday, so shoot me your questions, upvote others' question...

31 views 0 3
View post

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you