youngmon/atlassian-qna huggingface dataset:
Old Version New Version compare requires file download
Asked by rebelshoat:

Every now and then when I create a review, the review pane requires me to download the new and old revision to compare them. This is very inconvenient and I would love to figure out what in my files may be causing this. The files are typically text only.

Any suggestions?


Answers:
author: Tini Good
body: Probably it's file format. We use Subversion and Fisheye and see this occasionally. Make sure your mime-type on the file is set properly in your CVS/DVCS. \\

Also make sure your FE/Cruc installation's raw-mime,types file is configured to recognize your file type. Unconfigured filetypes are treated as binary. See this [Troubleshooting](https://confluence.atlassian.com/pages/viewpage.action?pageId=170495027) article.
Atlassian Connector not working properly in IntelliJ IDEA
Asked by Steffen Breitbach:

I have installed the Atlassian Connector for IntelliJ IDEA in my IDEA Ultimate 13.1.6. Jumping from Fisheye to IDEA works as intended. However, that unfortunately that is about the only thing that works ![sad](/html/@C495B4504065515364EB1894F812B34C/images/emoticons/sad.png "sad")

I have configured the connection in my project and when I test the connection it says "Connected Successfully". I've also set the "Crucible Server Contains Fisheye Instance" flag. However, when I try to configure FishEye in the "Defaults" tab, I can select the FishEye server but the "Default Repository" stays empty ("None").

The context menu item as described in <https://confluence.atlassian.com/display/IDEPLUGIN/Using+FishEye+in+the+IntelliJ+Connector> also is missing.

Regarding the Crucible part, when I try to create a review, I can see the repository as described in <https://confluence.atlassian.com/display/IDEPLUGIN/Creating+Crucible+Reviews+in+IDEA>

After clicking on "Create review..." I get an exception
>
> ```
> com.atlassian.theplugin.commons.remoteapi.RemoteApiException: Server returned HTTP 400 (Bad Request)
> Reason: IllegalArgument 
> Message: CreateReview requires at least one ReviewData or DetailedReviewData element
> ```

I also see some output in the shell I've started IDEA in. There are many lines like this
> isFishEyeConfigured == false

ahd also
> WARN - mons.httpclient.HttpMethodBase - Going to buffer response body of large or unknown size. Using getResponseBodyAsStream instead is recommended.

when I'm trying to use the plugin's features.

Any hints on how to debug this?


Answers:
author: Karol Lopacinski
body: Hello Steffen,  
pre-commit reviews are currently broken in the stable version of the connector. This has been fixed, and should work as intended in the next release; if you're feeling adventurous, you can try using unstable snapshot builds (available in the connector's global configuration, under General/Auto Upgrade) where this should already be working.  
I can't reproduce the Fisheye issue using FishEye 3.7.0 - the "Default Repository" combo box refreshes properly after setting the default server. Which FishEye version are you using?


author: Steffen Breitbach
body: Hi Karol,

I managed to get it to work. It did however need a lot of manual fixing to get there. I think I'll wait until the final release of 3.0.15 before investigating further.

Thanks so far!

Regards  
Steffen


author: Steffen Breitbach
body: I was able to get the link *from* IDEA *to* Fisheye to work by adding
> \<default-fisheye-repo\>myRepoName\</default-fisheye-repo\>

manually to the atlassian-ide-plugin.xml


Tags: addon-com.atlassian.ide.plugins.idea

ide-connector

intellij-idea
Commit number and author name column in FishEye commit graph?
Asked by Malte Nottmeyer:

Within the FishEye(+Crucible) "Commit Graph" of version 3.6.3:

**Is it possible to display the commit number and the author name as seperate columns?**

Currently I only know of the possibility to display the mapped author icon.

This should look similar to the commit overview in SourceTree, e.g.:

sourcetree.png

[](https://community.atlassian.com/t5/Fisheye-Crucible-questions/Commit-number-and-author-name-column-in-FishEye-commit-graph/qaq-p/1742?attachment-id=6605){#link_115b6b4a6ea8f1}  
[](/tnckb94959/attachments/tnckb94959/fisheye-crucible-questions/25/1/sourcetree.png){#display_115b6b4a6ea8f1_0}


Answers:
author: Piotr Swiecicki
body: I'm afraid this is not configurable at the moment. But feel free to raise an improvement issue in <https://jira.atlassian.com/browse/FE> project if you think this is something of value to other customers too. We may decide to implement that if there are more customers interested in such customisations.

Kind regards,  
Piotr


Tags: commit-graph
Create local admin in Fisheye return Error
Asked by Jinjing:

I tried to add a new user as admin in Fisheye, as described : <https://confluence.atlassian.com/display/FISHEYE/Creating+a+user>

where I select 'built-in' Auth type.

However, it returns :

image2015-1-22 8:26:6.png

Is this error a bug in Fisheye, or it is due to incomplete installation?

Is this the right way to create local admin? How can I create local admin in Fisheye?

Thanks!  
[](https://community.atlassian.com/t5/Fisheye-Crucible-questions/Create-local-admin-in-Fisheye-return-Error/qaq-p/425426?attachment-id=5519){#link_1165277558def7}  
[](/tnckb94959/attachments/tnckb94959/fisheye-crucible-questions/5692/1/image2015-1-22%208%3A26%3A6.png){#display_1165277558def7_0}


Answers:
author: Piotr Swiecicki
body: Thanks for you report. I'm afraid I can barely decipher the message from the screenshot, its resolution is to low. I can guess the error is NonUniqueResultException from Hibernate, this most likely means you have duplicated user in the system. But this still looks like an application error, you should rather see a proper validation error in such case.

Would you mind copying the text of the error message presented? If you could also attach log excerpt for this error (there should be some ERROR logged in FISHEYE_INST/var/log/atlassian-fisheye-DATE.log) and explain exact steps you've performed, that would help us reproducing the problem.

Also, ideally you would enable the debug mode (in Admin / Server screen) so we would have more details in the log. Finally, let me know the FishEye version you are running, I can't decipher that from the screenshot.

Kind regards,  
Piotr

comments: author: Jinjing
body: Thanks for you answer. Actually, you can click on the screenshot, then it will display with goog resolution. I don't know if this works for you.The message is " Your request was unable to be processed org.hibernate.NonUniqueResultException - query did not return a unique result: 3"


author: Jinjing
body: But I did't see any duplicate user


author: Piotr Swiecicki
body: Apologies, I've missed that.Still, it would be very useful to see the (DEBUG is possible) logs and know the exact actions undertaken, so we could reproduce the problem locally.


Tags: fisheye-crucible-administration
"Initial Import" in Fisheye with date "01 Jan 1970"?
Asked by Steffen Breitbach:

I have imported a repository with a certain start revision and "initial import without tag information" set. Looking at the line chart I get a huge chunk at 01 Jan 1970. Is this a bug? In my opinion this should be "the timestamp of (start revision - 1)" and not 0/null as it seems.


Answers:
author: gustavo_refosco
body: Hi Steffen,

This is actually a synthetic commit created to capture the state of the repository at the point of the initial import.

Please find further information on this in the topic [Why does Fisheye show my last commit date as '31 Dec 69'](https://answers.atlassian.com/questions/9874256).

Regards,

Gustavo Refosco


author: Steffen Breitbach
body: Thanks Gustavo. I'm watching <https://jira.atlassian.com/browse/FE-5378> now :smile:


Tags: fisheye-crucible-administration
How do I upload an iterative pre-commit patch to Crucible?
Asked by Doug Konrad:

How do I upload an iterative pre-commit patch to Crucible? The instructions ([https://confluence.atlassian.com/display/CRUCIBLE/Iterative+reviews?continue=https%3A%2F%2Fconfluence.atlassian.com%2Fdisplay%2FCRUCIBLE%2FIterative%2Breviews\&application=cac#Iterativereviews-Iterativepatchuploads](https://confluence.atlassian.com/display/CRUCIBLE/Iterative+reviews?continue=https%3A%2F%2Fconfluence.atlassian.com%2Fdisplay%2FCRUCIBLE%2FIterative%2Breviews&application=cac#Iterativereviews-Iterativepatchuploads)) do not describe how to select the patch that the new patch is a revision of. I am getting anchoring failures.


Answers:
author: Doug Konrad
body: Thanks, Dave. Your answer lead me to consider if I was following the instructions ***exactly***.

I was using Mercurial. Because it is a distributed RCS, I didn't take pre-commit literally. I was interpreting it as pre-push. As a result, I was generating a diff from a commit that was not yet in the repo that fisheye was monitoring. And because of that, I wasn't being presented with the dialogue to select the original patch.

I compared the diff headers between "hg diff \>patch" and "hg diff -r XXXX -r YYYY \>patch" and found the problem. Crucible is expecting -r YYYY in the header, but my command puts -r XXXX r YYYY which confused it. When I hand-edited the patch file to remove -r XXXX, leaving only -r YYYY, it worked.

In summary, if it looks like this:

`diff -r f4142f6a05cf -r 6a78d9e66478 CmnClient/src/CmnClient/SystemManagerClient.cpp`

It should be changed to look like this:

`diff -r f4142f6a05cf CmnClient/src/CmnClient/SystemManagerClient.cpp`


author: davelahn
body: Hi Doug,

When you uploaded the first patch, did it correctly anchor to the repository? If it does, when you add the iteration of that patch, it should show up (as per the screenshot in the doc you linked), allowing you to select it as an iteration of that previous patch.

Can you confirm that you've created your patches as per [these instructions](https://confluence.atlassian.com/display/CRUCIBLE/Creating+patch+files+for+pre-commit+reviews)?

Best regards,

Dave Lahn
Can a Crucible project inherit permissions from Fisheye content?
Asked by Steffen Breitbach:

I have successfully restricted access to my repositories in Fisheye via LDAP filtering. When adding a project in Crucible, I select a repository under "Content".

I would like to have the same permissions in the project as I have in the selected repository, e.g. trough inheritance of permissions.

Is that possible somehow?


Answers:
author: Piotr Swiecicki
body: I'm afraid this is not possible at the moment. But feel free to file an improvement request in <https://jira.atlassian.com/browse/CRUC>, we will consider this if we see interest from other customers, too.

Hope that helps,


author: Steffen Breitbach
body: Hi Piotr,

will do :smile:

Regards  
Steffen


author: rahuldanwade
body: Hi Steffen,

You can associate permission scheme while creating crucible project or later you can edit and change.

A permission scheme controls who can perform particular actions, for example, create a review.

While in  
Repository Defaults you can instruct FishEye and Crucible to restrict the groups of users who can access the repositories.


Tags: fisheye-crucible-administration
very slow fisheye diffs
Asked by Skip Sopscak:

We use fisheye with a variety of different svn repositories and generally have good performance. An exception is a recently added, fairly large repository with upwards of 50,000 revisions. Bringing up a diff in a review often takes a long time, sometimes approaching a minute or more. In the admin repository summary we can see blame commands of the form  

svn blame -r 0:48585 file:///D:/foo/bar@48585  

which given their duration seem to account for the latency. I think use of blame like that can be expected to be pretty time consuming. Are there any configuration options we can use to speed this up? Am I right in thinking the fisheye indexing isn't a factor here? We did set Start Revision to a very recent revision to get the indexing done in reasonable time.


Answers:
author: LifeOfAFlippedTable
body: Hi Skip,

<br />

Yes, this is more about how fast the SVN execution is able to take place. I would suggest by using an alternative way which is using the [Native Subversion Client](https://confluence.atlassian.com/display/FISHEYE/Native+Subversion+Client) instead. It has been proven to improve the speed of SVN execution and it may have worked for you. You can simply test this by downloading it (based on your OS) and then try to execute the command that was stuck like:

```
time ./svn blame -r 0:48585 file:///D:/foo/bar@48585
```

and see how long does the execution takes. If its *much* faster, I would recommand that you migrate over and fully test it on your test server before deploying it onto your production.

Hope that this information helps.

Cheers,

Andrew Er


Tags: fisheye-crucible-administration
How to show source code line in email notification with comments?
Asked by Ruth:

I couldn't find any help on this through searching the documentation or answers here. I like the email notifications on reviews from Crucible when comments are added, however, I always need to follow the link to remind myself what line of code is being discussed.

I would like the email notification to also include the source code line (and line number) commented on. Does anyone know a way to do this?


Answers:
author: Piotr Swiecicki
body: I am afraid this is not yet possible, Feel free to vote on and watch existent improvement requests though: <https://jira.atlassian.com/browse/CRUC-3385>, <https://jira.atlassian.com/browse/CRUC-7086>. We aim to invest development effort into features in the greatest demand, so it might get implemented if more customers is interested in such feature.

Hope that helps,  
Piotr

comments: author: Ruth
body: Thank you! That's just what I was looking for. I'm watching both of those now :).


Tags: fisheye-crucible-administration
no notification email was sent
Asked by Zhe Chen:

The Test Email sends fine, but notification emails are not being sent.

crucible version : (Version:3.5.4 Build:20140917115234)


Answers:
author: B??var G. J?nsson
body: Have you tried out the Notification Helper?   

Check this: [https://confluence.atlassian.com/display/JIRA/JIRA+Admin+Helper?continue=https%3A%2F%2Fconfluence.atlassian.com%2Fdisplay%2FJIRA%2FJIRA%2BAdmin%2BHelper\&application=cac#JIRAAdminHelper-NotificationHelper](https://confluence.atlassian.com/display/JIRA/JIRA+Admin+Helper?continue=https%3A%2F%2Fconfluence.atlassian.com%2Fdisplay%2FJIRA%2FJIRA%2BAdmin%2BHelper&application=cac#JIRAAdminHelper-NotificationHelper)
on restore fisheye-data sub-directory is empty
Asked by DI2E Licensing:

I'm trying to make a copy of production on our sandbox server.

Using the following command:

```
/opt/atlassian/fecru-3.6.3/bin/fisheyectl.sh restore -f ../fisheyeandcrucible_backup_2015_01_08.zip -j jdbc:postgresql://localhost:5432/fecru -u fisheye -p <redacted> -t postgresql --force
```

`It seems to be perfectly happy. But when I start fisheye there are boatloads of errors about "Requested bean is currently in creation: Is there an unresolvable circular reference?" and it shuts down.`

`The only thing that seems really suspicious is that /opt/atlassian/fisheye-data on the sandbox server is empty. the sub-dirs that should be there are in the install directory. But not all the files from prod fisheye-data appear to have made it to staging. Some, but not all.`

`Ideas?`  


Answers:
author: Piotr Swiecicki
body: As you figured out the FISHEYE_INST environment variable has to point to the folder where do you want the instance to be restored to. And later still need to be set to the same location when starting restored instance.

This is the documented way of restoring instance, see <https://confluence.atlassian.com/display/FISHEYE/Backing+up+and+restoring+FishEye+data#BackingupandrestoringFishEyedata-RestoringFishEyedata>, it should work perfectly fine.

If you still have any issues with some data being not restored please ensure expected data was included in the backup file in the first place.

Hope that helps,  
Piotr

comments: author: DI2E Licensing
body: Yep. All was fine after I set the environment variable. Thanks.


author: DI2E Licensing
body: I **think** this is because I didn't have FISHEYE_INST defined. Things seem better now. Not quite there. But definitely better.


Tags: fisheye-crucible-administration

restore
Indexing capability (search word not found)
Asked by Stig Christensen:

I'm evaluating FishEye and tried some random searches on our codebase.

a .cpp file is indexed with the following content (i can search the file by its name)

Groupings-\>AddObject("Issuer",(TObject\*)10);  
Groupings-\>AddObject("IssuerType",(TObject\*)34);  
Groupings-\>AddObject("Country",(TObject\*)11);  
Groupings-\>AddObject("MSCI Sector",(TObject\*)12);  
Groupings-\>AddObject("MSCI Industry Group",(TObject\*)13);  
Groupings-\>AddObject("MSCI Industry",(TObject\*)14);  
Groupings-\>AddObject("MSCI Sub Industry",(TObject\*)15);

When I search for "Issuer" or Issuer (without quotes) FishEye does not find the file.

Is this expected?


Answers:
author: Piotr Swiecicki
body: No this is not expected. Both searches should work and find the file. Please be aware though that FishEye indexes content of the HEAD/tip revisions only, so if the file lives only on the branch it won't be found. See <https://confluence.atlassian.com/display/FISHEYE/Searching+FishEye#SearchingFishEye-Specifycriteriausingthesearchinterface>

But you may use the Diffs search. That would search all individual diffs across the repository and will find all the occurrences where such text was added or removed. Just ensure your repository has the "Store Diff Info" option enabled, if if doesn't you may want to enable it. This would require reindexing repository though.

Hope that helps,  
Piotr
Crucible REST API filter fromDate & toDate
Asked by Wei-Hwan Chiang:

### /rest-service/reviews-v1/filter?fromDate=\<value\>\&toDate=\<value\> {#toc-hId-1478580392}

What is the meaning of fromDate and of toDate?

Can someone provide a definition? The official online document says nothing about it. Thx.

(I understand the time is in unix time (milliseconds) )

<br />

Assume this notation: time t1 \< time t2 \< time t3, ...  

Take this simple example, if a review CR-ABC-3 is created at time t5, summarized and closed at time t10.

If I specify (fromDate=t1, toDate=t7), shall I expect to find the review?

How about (fromDate=t7, toDate=t9)?

How about (fromDate=t7, todate=t11)?

How about (fromDate=t11, toDate=t15)  

<br />

Thanks,  

Wei  


Answers:
author: Piotr Swiecicki
body: Hi @Wei-Hwan Chiang,

Apologies for the confusion, the same issue was recently identified on <https://jira.atlassian.com/browse/CRUC-6941> issue. The documentation will be clarified in the upcoming 3.7 release.

Basically both dates as you guessed represent unix time expressed in milliseconds. They are compared against the last activity on the review. In your case as the review was last updated at time t10, you should expect this review to be returned when filter (fromDate=t7, toDate=t11) is specified.

Hope that helps,  
Piotr

comments: author: Wei-Hwan Chiang
body: Hi Piotr, thx for the clarification!Wei


Tags: fisheye-crucible-administration
Crucible progress time tracking
Asked by jechire:

Hi, In the Version 3.6.3 there is any way to see all the Reviews with the time tracking?

I know that in Review Dashboard i can see all reviews but i want to see one column more with the "Time Tracking " information.

This is posible?

Thanks for all


Answers:
author: jechire
body: Hi @Piotr Swiecicki thanks for the info, i will use API REST

Thanks


author: Piotr Swiecicki
body: I am afraid there is no such report available in the UI.

But you can use REST API to retrieve requested information. For example this endpoint: <https://docs.atlassian.com/fisheye-crucible/latest/wadl/crucible.html#rest-service:reviews-v1:filter:filter:details> would return detailed information of all reviews matching given criteria. Along other details it would contain the time spent information, expressed in milliseconds. For example this report: <https://fisheye1.atlassian.com/rest-service/reviews-v1/filter/details?author=lpater> shows all reviews created by particular user. If you retrieve it you will find details like:

```
&lt;reviewers&gt;  &lt;reviewer&gt;    &lt;avatarUrl&gt;https://fisheye1.atlassian.com/avatar/pswiecicki?s=48&lt;/avatarUrl&gt;    &lt;displayName&gt;Piotr ?wi?cicki&lt;/displayName&gt;    &lt;userName&gt;pswiecicki&lt;/userName&gt;    &lt;completed&gt;false&lt;/completed&gt;    &lt;timeSpent&gt;790112&lt;/timeSpent&gt;  &lt;/reviewer&gt;&lt;/reviewers&gt;
```

Please note fisheye1.atlassian.com server allows only logged users to access review data, so in order to have this example working for you, you may need to signup for account there.

Also, if you prefer JSON format rather than XML remember to include appropriate Accept header, e.g.

```
curl -s -u user:password -H 'Accept: application/json' 'https://fisheye1.atlassian.com/rest-service/reviews-v1/filter/details?author=lpater' | jq . | grep -7 Spent      "type": "REVIEW",      "allowReviewersToJoin": false,      "metricsVersion": 3,      "createDate": "2014-12-18T10:27:03.113+0000",      "reviewers": {        "reviewer": [          {            "timeSpent": 790112,            "completed": false,            "avatarUrl": "https://fisheye1.atlassian.com/avatar/pswiecicki?s=48",            "displayName": "Piotr ?wi?cicki",            "userName": "pswiecicki"          }        ]      },
```

Hope that helps,  
Piotr


Tags: fisheye-crucible-administration
Jira issue link in fisheye redirects to the Jira Dashboard.
Asked by Jenin Mohan:

Hi Folks,

We are facing an issue where Jira issue link in Fisheye changesets redirects to Jira dashboard instead of the particular issue.

For eg. If I click on XYZ-1, it takes me to the Jira Dashboard instead of the ticket number. The ticket does exists in Jira.

Thanks and Regards,  
Jenin Mohan


Answers:
author: Jenin Mohan
body: This issue is resolved now, turns out that there was a custom linker configured, removed it and now the JIRA issue link is working like a charm.

Thanks all!


author: rahuldanwade
body: Hi Jenin,

Does't it shows issue key link in commit section?

what error does it showing(error no)?

comments: author: Jenin Mohan
body: It shows issue link for eg it shows xyz-1, but that actually is the link for Jira dashboad instead of the jira issue.


author: Nic Brough -Adaptavist-
body: Does your user have the right to see that issue?


author: Jenin Mohan
body: Yes, user have access to view that issue.


Tags: fisheye-crucible-administration
How is FishEye/Crucible user authorized to access SVN repository?
Asked by Victor Gleim:

I'm new to FE/Cru administration. I'd like to understand how a FE/Cru user gets authorized to access a SVN repository. Are user's credentials used to access the repository?


Answers:
author: Felipe Kraemer
body: Hi Victor,

The credentials you need to use in FishEye/Crucible are the same you use in order to access it via web browser or command line. This user must have access to the repository root and all the directories and files under the root.

You can run the following command to check if a user has access to the repository:

```
svn info &lt;REPO_URL&gt;
```

This command will probably ask you to provide credentials. If the credentials are accepted, the user can be used in FishEye/Crucible as well.

If this answer was helpful, please allow me to ask you to mark my answer as accepted in order to have it in the top of the thread, also helping other customers.

Thanks in advance!

Kind regards,  
Felipe Kraemer


Tags: fisheye-crucible-administration

svn