Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 3857 by der.se...@gmail.com: Problem with displaying java diffs of maven projects in clearcase
https://code.google.com/p/reviewboard/issues/detail?id=3857

What version are you running?
2.0.15

What's the URL of the page containing the problem?
/reviewboard/r/530/diff/

What steps will reproduce the problem?
1. Post diffs of a java maven project inside a clearcase repo
2. Go to server.com/reviewboard/r/530/diff/

What is the expected output? What do you see instead?
Filenames of diff are correct.
"MavenProject/src/main/java/package/Filename.java"
instead the diff file name ends behind src
"MavenProject/src"

For files in the test folder it works "MavenProject/src/test/java/package/FilenameTest.java"


What operating system are you using? What browser?
Win 2008 Server R2


Please provide any additional information below.
Error in ReviewBoard-2.0.15-py2.7.egg\reviewboard\scmtools\clearcase.py
line 53

    # This regular expression can extract from extended_path
    # pure system path. It is construct from two main parts.
    # First match everything from beginning of line to first
    # occurence of /. Second match parts between /main and
    # numbers (file version).
    # This patch assume each branch present in extended_path
    # was derived from /main and there is no file or directory
    # called "main" in path.
UNEXTENDED = re.compile(r'^(.+?)/|/?(.+?)/main/?.*?/([0-9]+| CHECKEDOUT)')

As mentioned in the comment, this path is not expected to contain a "/main".

For Maven this is recommended!

The regex has to be fixed therefore.


Attachments:
        error.PNG  8.5 KB

--
You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/d/optout.

Reply via email to