-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem viewing diff of a review on GIT #94
Comments
Can you attach a stack trace from the Eclipse error log?
Sent from my (old) computer |
Indeed, Eclipse is showing a error message, not a exception, so no message is being show on "Error Log" neither on eclipse logs available at .metadata. I think that the code is handling this "invalid id" condition and showing the message dialog to user. |
I'll have a look at the code and add some debugging information. I think this error is reported by the git repo . |
Thanks ;) Here a print screen of the error dialog: http://i.imgur.com/XWEQ7.png |
I am not able to reproduce this problem. It seems that the jgit layer receives an invalid ObjectId for the change. Can you tell me how you've generated / uploaded the diff and which kind of Git setup do you have? |
I'm using EGit and the diff was uploaded using ReviewBoard (directly). Using Mylyn with mantis connector and git connector I can view the diff between revisions on Mylyn task viewer. How are you doing the diff on eReviewBoard tool? |
Affects #94: Problem viewing diff of a review on GIT
I'm not sure why this happens, so I've added slightly better error handling. It seems that the patch contains an ObjectId which is not valid . Either that, or I'm missing something - I've just briefly looked at the JGit APIs. Can you try build #91 or newer from https://ereviewboard.ci.cloudbees.com/? My only comment is that I created the diff using git format-patch. Did you use EGit to create the patch? |
I have tried to install build #91 by copying manually .jars from /target folder on jenkins to my eclipse/plugins folder but it doesn't works... Opening Eclipse it doesn't list ReviewBoard as an available connector to perform a query. Missing something? |
You should download the update site zip, right now and installing using Help -> Install new software -> Add -> Archive -> .... Robert |
With this new version I'm having the same error as before: "Invalid id hash". And I'm generating diff using 'git diff' (command line) |
I have tested creating a diff with 'format-patch' and with 'diff' and on both ways I cannot view the diff. :/ |
I'm really not sure why this happens. Is there some way I can test this myself? It would help if you could generate a patch against a public project and then verify that it does not apply. |
I think that could be a problem on my server configuration or something like that. I will try to make this on a public project this week... Thanks for now |
Hey, I have downloaded eReviewBoard source code and debugged on my use case. On method getContents() of EGitSCMFileContentsLocator class, I have a repository object (Repository) with a weird path: /home/company/essshub10/services/git/repositories-http/pwda11.git The path is expected to be on this format? Thanks |
I have noticed a weird behavior using ObjectId from jgit. Using this code: ObjectId.fromString(hash) On code, with hash equals to "1115d38" jgit returns the exception "Invalid id 1115d38". If I use this id and execute "git show 1115d38" at terminal on my git project it works perfectly! I don't understand what is happening inside Eclipse, because it works at terminal. |
I suggest you open a bug on bug.eclipse.org ( JGit project ) and Robert
Sent from my (old) computer |
I have forked eReviewBoard project and done two commits that maybe could be integrated on your code. Fix wrong .project names on egit plugins Fix bug of invalid object id Now, it's working! :) Thanks |
Thanks! pghilardi@6055415 Can you amend this commit to not have any whitespace/formatting changes? Thanks On Tue, Apr 17, 2012 at 10:31 PM, pghilardi
Sent from my (old) computer |
Sorry, I have formatted automatically on Eclipse. I will ammend this commit tomorrow. Thanks |
I have fixed the commit removing whitespace/formatting changes. Link here: pghilardi@666cf53 |
Fixed with pull request #97 . Thanks! |
Hey,
I'm having problems to view a diff of a review on GIT using eReviewBoard. I can view the diff of a new file (a file that didn't exists on previous revision), but cannot view diff of modified files. This is the error message:
"Compare Failed: Invalid Id: eb14816", where the last number changes accordingly to review.
I don't know what is happening, maybe my repository is misconfigured or something like that.
Thanks,
Pedro
The text was updated successfully, but these errors were encountered: