youngmon/atlassian-qna huggingface dataset:
Example of custom Fisheye authenticator?
Asked by Keith Kwiatek:

Hello,

1. We currently have fisheye fecru-3.5.2 installed and working using standard username and password authentication. We would like to write a custom authenticator to enable SSO/kerberos via an apache mod_auth_kerb+proxy module (we have successfully done this for jira)

2. Basically the apache mod_auth_kerb performs the kerberos authorization and if successful, passes the username (via a header) to the backend server -in this case Fisheye (or Jira).

3. From reading the fisheye doc below, it seems that we are able to write a custom authenticator. But can you provide guidance on which methods need to be over written? Can anyone provide a sample custom authenticator? What is the process flow for the custom authenticator?

4. I see that the "checkRequest" method says "Called to allow implementations to determine if the request is pre-authenticated, bypassing FishEye's own HTTP authentication." Is this what we would use in our custom authenticator to take the "request", then grab the username and generate an auth token to fishey?

<https://confluence.atlassian.com/fisheye/custom-authentication-298976833.html>

[https://docs.atlassian.com/fisheye/2.0.](https://docs.atlassian.com/fisheye/2.0.4/com/cenqua/fisheye/user/plugin/FishEyeAuthenticator.html)


Answers:
author: lpater
body: Hi Keith,

I've uploaded two simple authenticator examples at <https://bitbucket.org/lpater/fisheye-authenticator-examples>, hope these will get you going.

When writing a custom authenticator you should extend AbstractFishEyeAuthenticator, instead of implementing the interface directly.

The important methods to implement are checkPassword (to verify username+passwords for users logging in), recreateAuth - to recreate tokens for previously authenticated users. Both of these return an AuthToken, which you also need to provide an implementation for - an AuthToken is a small object representing a user. See the linked examples for some more details.

Best regards,

?ukasz Pater


Tags: authentication

kerberos

token
Auxiliary Configuration for Perforce Job Integration
Asked by Carlo-Antonio Marin:

Hi All,

I'm stuck here, I've looked over all the documentation but I still can't find an answer. Long story short, our JIRA instance has the Fisheye plugin installed, it's worked fine, we added a new perforce instance and I was trying get the Perforce Job Integration module to work with the new instance. I went through the documentation for setting up an auxiliary configuration, but I still just keep getting this incorrect password below. I'm positive the password is correct I've used it to login. What am I missing here? Is there something I can check maybe on the perforce side, JIRA side, any side? :smile: Any help would be greatly appreciated.

Problem connecting to Perforce:   
com.perforce.api.CommitException [java.io](http://java.io).IOException: error: Perforce password (P4PASSWD) invalid or unset.   
Your **P4PASSWD** (or **Ticket file** if you have one specified) may be missing or corrupt

<br />

Thanks,

CAM


Answers:
author: gustavo_refosco
body: Hi CAM,

The error you're getting is further described at <https://confluence.atlassian.com/pages/viewpage.action?pageId=192479715>. Can you please review this document and check if the proposed resolution helps?  

Please notice you need to apply it to the server in which FishEye runs (you mentioned FishEye as being a JIRA plugin, while it's actually a separate application that integrates with JIRA. Please make sure to work the resolution above in the FishEye server, assuming your Perforce repo is indexed by FishEye).

Regards,

Gustavo Refosco

comments: author: Carlo-Antonio Marin
body: HI Gustavo, Thank you very much for your reply. I do understand that fisheye is a separate application, we have it running with the original perforce instance. the entire setup works when we have the following configuration 1 JIRA instance, 1 Fisheye instance, 1 Perforce instance. What I'd like to do is add 1 extra perforce instance to the mix. When I make reference to the plugin, this is what I'm referring to :). I used this documentation to try to set up, but im still stuck with the current error. <https://ecosystem.atlassian.net/wiki/display/FISH/Configuring+Multiple+Perforce+Depots>I'll still give your reference a try see maybe if I can set the passwords to be the same.Regs, CAM


Tags: fisheye-crucible-administration
Is it possible to modify the time it takes to update Fisheye after a Stash modification?
Asked by DI2E Licensing:

My customer writes:

" Is there a way to increase the speed of the updates from the branches in Stash to the branches available in FishEye? Sometimes we see up to a 1-2 hour lag time between when code is checked into Stash to when the corresponding branch is available to review in FishEye. Would be really helpful to increase this sync speed if possible."

Any suggestions? THANKS


Answers:
author: GabrielleJ
body: You have 2 options here:

* Increase the polling time in Fisheye (Under Administration \> Updates \> Polling Interval)
* Implement a commit hook so that Fisheye will re-index on every commits

Read more about it here <https://confluence.atlassian.com/fisheye/configuring-commit-hooks-315327572.html>

comments: author: DI2E Licensing
body: I'm not seeing "Updates" in Fisheye under administration. thanks!


author: DI2E Licensing
body: Is the commit hook configured in Fisheye or Stash?thanks again!


author: GabrielleJ
body: In the Administration screen, open one Fisheye Reopsitory to view it's configuration. Then click the "Updates" tab.The commit hook will have to be configured/added in the Stash GIT Repository


Tags: bitbucket-server

branch

commit
Sorry, we can't display this file: Repository XYZ does not exist when we opening old review in Crucible?
Asked by Satyendra Narwane:

Dear Team,

Greeting for the day !!!

We have renamed the git from xyz.git to xyz due to some reason. But now when I open the Old review it is displaying a message i.e.**Sorry, we can't display this file: Repository XYZ does not exist.**

We have re-index the repository but still not able to view the old reviews \& their Information.


Answers:
author: gustavo_refosco
body: Hi Satyendra,

As mentioned by Marek, if you manually rename a repository it won't update any reference to this name, so you may observe some inconsistencies. In fact, renaming a repository isn't supported, as the change in its name won't be reflected by the database.

Can you please give a try to rename it back to its original name, restart Crucible and confirm if the problem goes away?

Please allow me to mention we have a feature request for this, which you can check at <https://jira.atlassian.com/browse/FE-1290>.

Regards,

Gustavo Refosco


author: Marek Parfianowicz
body: Could you please tell what steps did you perform to rename a repository? Please note that renaming it in config.xml only is not sufficient as data stored in DB and Lucene will still contain references to the old name.


author: Satyendra Narwane
body: Untitled.png

Please do refer the error in the above screen.  
[](https://community.atlassian.com/t5/Fisheye-Crucible-questions/Sorry-we-can-t-display-this-file-Repository-XYZ-does-not-exist/qaq-p/249019?attachment-id=1921){#link_116451905d5a21}  
[](/tnckb94959/attachments/tnckb94959/fisheye-crucible-questions/3365/1/Untitled.png){#display_116451905d5a21_0}
Smart commit missed link to JIRA issue
Asked by Viktor:

We have projects in JIRA and Crucible which have similar names like:

JIRA: TEST3

Crucible: CRV-TEST3

When submitting a changelist with key CRV-TEST3-19 a link to CL is created in JIRA issue TEST3-19

Is it possible to override it somehow?

Or only changing key would help?

How can we remove that link from JIRA issue?


Answers:
author: Viktor
body: Neither of quotes did work "" '' \`\`

Is there a chance it is fixed in future versions of Crucible/Fisheye?

Currently we use 3.4.0 version


author: Nicolas Bourdages
body: It's probably the dash in your key that causes the problem. I'm surprised that it's not a reserved character.

Have you tried protecting the issue key with quotes? "CRV-TEST3-19"? Or 'CRV-TEST3-19'?

If not, changing your key sounds like the only option. If your key was TEST3-CRV this wouldn't happen.


Tags: fisheye-crucible-administration

jira-administration
Wich password do I need to authenticate the Jira User-DB in Crucible? (See Screenshot)
Asked by L. Schimmel:

Hello everyone,

I have a short question, that a JIRA Admin could answer for me: I want to set up the authentication for our new crucible server to mirror the user database of our JIRA server. For that I need a password, but the JIRA admins in my department don't know wich password I mean by "application password".

Is there a general admin password in JIRA without a user name like in crucible? Or do I need a Database password?

Best regards

Leonard Schimmel

3.jpg  
[](https://community.atlassian.com/t5/Fisheye-Crucible-questions/Wich-password-do-I-need-to-authenticate-the-Jira-User-DB-in/qaq-p/374400?attachment-id=3574){#link_116451a664daae}  
[](/tnckb94959/attachments/tnckb94959/fisheye-crucible-questions/4985/1/3.jpg){#display_116451a664daae_0}


Answers:
author: Taha Khanzada
body: Hi Leonard,

You need to first go to JIRA, and under Admin section User Management --\> JIRA USer Server and add application name and password their and then use this password in Crucible.

You can refer below link which mentions detailed procedure for the same

<https://confluence.atlassian.com/jira/allowing-other-applications-to-connect-to-jira-for-user-management-233767143.html>

Taha


Tags: fisheye-crucible-administration
Just to confirm the license of 101+ equates to Unlimited users?
Asked by colinquek:

Hi I'm trying to purchase Crucible and Fisheye, the max users is stated as ++101+.++

<br />

This means **unlimited number** of users yes?

Just need a confirmation as im submitted as a tender.

Thanks


Answers:
author: user1648639125013
body: Hi Colin,

Yes you are correct the 101+ does represent Unlimited users, this is the last tier of licensing for FishEye Crucible.

Kind Regards,

Chris
cucible and fish eye licence
Asked by Mallikharjun:

Dear team,

We have JIRA license for 100users and Crucible for 25 users. JIRA ans Crucible sharing the same user-database. But Out of 100 users we need specific 25 users to use the Crucible. Crucible by default loading the first 25 users in alphabetical order. How to load the specific 25 users to use and authenticate against Crucible?. Crucible downloaded after extracting name is fecru-3.9.0. Where we do not have the license for Fisheye. And all the installations also taking by default as fisheye-home like that.

can you please explain me what is the correct binary to install crucible?. Do we really need to have license for Fisheye also.?

Regards

mallikharjun


Answers:
author: Piotr Swiecicki
body: Hi @Mallikharjun,

I doesn't really matter what binary, FishEye or Crucible, you actually use. As explained in the other reply both products are actually pretty much binary (difference is only few details on the setup pages), but depending on the licences you set up in your instance you would get FishEye and/or Crucible parts of the application enabled only.

In your configuration just use FishEye or Crucible binary and set up Crucible license, so you would be allowed to use Crucible by 25 users.

Now, regarding the question how to select which 25 out of 100 users should have access to Crucible, it is possible. I'm guessing by
> JIRA ans Crucible sharing the same user-database

you mean Crucible is set up to use JIRA as authentication source, as explained on <https://confluence.atlassian.com/display/JIRA/Allowing+Other+Applications+to+Connect+to+JIRA+for+User+Management> page. In order to select which users have access to your system define a group of users in JIRA that should have access to Crucible, add up to 25 users to that group in JIRA, then configure JIRA authentication so only users who belong to that group can log in to Crucible. See the screenshots:

cru-jira-step1.png

cru-jira-step2.png

Hope that helps,

Piotr  
[](https://community.atlassian.com/t5/Fisheye-Crucible-questions/cucible-and-fish-eye-licence/qaq-p/404015?attachment-id=9332){#link_115a95d741d165}  
[](/tnckb94959/attachments/tnckb94959/fisheye-crucible-questions/5416/1/cru-jira-step2.png){#display_115a95d741d165_0}  
[](https://community.atlassian.com/t5/Fisheye-Crucible-questions/cucible-and-fish-eye-licence/qaq-p/404015?attachment-id=9333){#link_115a95d741d165_0}  
[](/tnckb94959/attachments/tnckb94959/fisheye-crucible-questions/5416/2/cru-jira-step1.png){#display_115a95d741d165_2}


author: Marek Parfianowicz
body: FishEye and Crucible are bundled together in the same binary file and you can enable them by pasting FishEye and/or Crucible license keys during setup or in the administration panel.

You don't need to have FishEye license to run Crucible. In case you have Crucible license only, it will run with a "light FishEye" version. More details here:

<https://confluence.atlassian.com/crucible/what-happens-if-i-decide-to-stop-using-fisheye-with-crucible-298977364.html>


Tags: licence
LDAP User Load Issue
Asked by Matt Preall:

I recently changed to an LDAP authentication model for our existing Crucible/Fisheye installation. However, when it was configured, it mistakenly had the options to auto-add all LDAP users as Crucible users, so our user database now shows all 10,000+ LDAP accounts instead of the \~100 or so Crucible accounts I want to monitor.

Is there an way to remove all the extra accounts without having to do them page by page?


Answers:
author: Maciej Swinarski
body: Hi,

I would recommend to delete users via the FeCru Admin REST API:

<https://docs.atlassian.com/fisheye-crucible/latest/wadl/fecru.html#rest-service-fecru:admin:users:name>

mac


author: HarryH
body: You can delete it from database. The main table is cru_user; and besides remove records from the table, you need to check if there are reviews and comments related to this users;

Check cru_review, cru_review_comment and cru_comment


Tags: fisheye-crucible-administration
how can I track users deleted in fisheye
Asked by Ryan O Sullivan:

3 users details appear to have been deleted this week in fisheye , recreating them resolves the issue, however I can't tell how they were removed, is there any audit function or way to track whats going on


Answers:
author: Pilar
body: Unfortunately not, once a user is deleted it is deleted for ever. Once users with administrative permissions can perform such an operation. So,iwould request you to review your admin users list and may be refine it.

Deleting a user is never a good idea, i would recommend that we disable users once they leave organisation instead of deleting them.

Pilar


Tags: fisheye-crucible-administration
Crucible integration with JIRA
Asked by Robert G. Nadon:

G'Day experts,

We are new uses of Crucible and looking for some how to. What we want to do is from within JIRA click on a transition that's called "Crucible Review". We want that to automatically create a review with the changes sets that are tied to that particular JIRA, with the assignee of the JIRA being the one who created the review, and a screen that has fields to choose the reviewers. Then ideally the reviewers would automatically be notified that they are have code review waiting from them.

Is that possible?

Thanks in advance,

Robert


Answers:
author: sbirgisson
body: Hi @Robert G. Nadon,

The default way of creating a review from JIRA is through the development panel, and create review from changesets shown, as described here <https://confluence.atlassian.com/crucible/creating-a-review-from-jira-298977462.html>

A more advanced option would be to hit the create review URL in a post-function in JIRA. The URL is described here: <https://confluence.atlassian.com/crucible/creating-a-review-from-a-url-298977459.html> , but unfortunately I dont know enough about JIRA and how to create post-functions like that. A search pops up the Script runner add-on, <https://answers.atlassian.com/questions/198481>. I hope you find what you are looking for.

Sigge, QA for Bamboo/Fisheye/Crucible


author: Ravi Kumar
body: HI [@Robert G. Nadon](/t5/user/viewprofilepage/user-id/510243) I am looking for solution of same kind of usecase.

Can you please confirm if you are able to achive this? If yes than what you performed in order to get this working?

comments: author: Robert G. Nadon
body: We switched to Git and no longer use Fisheye/Crucible, so we are just using the code review as part of Git. Yes at the time I implemented something close, but since we haven't used it in over a year, and I do not recall much about it. I would follow Sigge's recommendations above or re-ask the question to the forum.

Best,

Robert


Tags: fisheye-crucible-administration
Deleting a user in Fisheye/Crucible via the REST API
Asked by Claus Nielsen:

Hi,

It is possible to delete a user from Fisheye/Crucible via the admin interface. If the given user has one or more active reviews you will get a warning before finally clicking delete.

When using the rest interface: <http://codereview/rest-service-fecru/admin/users/>{username}

then the user is deleted without any warning.

I have tried with these ones to find reviews for a user:  
[http://codereview/rest-service/reviews-v1/filter/details?author=bola\&states=Draft,Approval,Review,Summarize,Unknown](http://codereview/rest-service/reviews-v1/filter/details?author=bola&states=Draft,Approval,Review,Summarize,Unknown)

[http://codereview/rest-service/reviews-v1/filter/details?moderator=bola\&states=Draft,Approval,Review,Summarize,Unknown](http://codereview/rest-service/reviews-v1/filter/details?moderator=bola&states=Draft,Approval,Review,Summarize,Unknown)

[http://codereview/rest-service/reviews-v1/filter/details?creator=bola\&states=Draft,Approval,Review,Summarize,Unknown](http://codereview/rest-service/reviews-v1/filter/details?creator=bola&states=Draft,Approval,Review,Summarize,Unknown)

[http://codereview/rest-service/reviews-v1/filter/details?reviewer=bola\&states=Draft,Approval,Review,Summarize,Unknown](http://codereview/rest-service/reviews-v1/filter/details?reviewer=bola&states=Draft,Approval,Review,Summarize,Unknown)

If one of the above returns data the user should not be deleted.

Is it possible to use the Fisheye/Crucible REST API to find out if a user has active reviews in a more simple way ?


Answers:
author: gustavo_refosco
body: Hi Claus,

You can use the same approach as you're using to verify whether there are reviews or not for a given user, but you can do it all in a single query by using the **orRoles** parameter set to **true** . This is one of the parameters that can be used in the /rest-service/reviews-v1/filter/details function, and by setting it to true you can put all the roles on the same request, and the concatenator between them will be read as **OR**, so you could have a request like the following:

[http://codereview/rest-service/reviews-v1/filter/details?author=bola\&moderator=bola\&creator=bola\&reviewer=bola\&orRoles=true\&states=Draft,Approval,Review,Summarize,Unknown](http://codereview/rest-service/reviews-v1/filter/details?author=bola&moderator=bola&creator=bola&reviewer=bola&orRoles=true&states=Draft,Approval,Review,Summarize,Unknown)

Regards,

Gustavo Refosco

comments: author: Claus Nielsen
body: Thanks a lot - just what I was looking for :-)
Crucible Repository Indexing status remains on 99.9% completed
Asked by Balbir Balli:

Hello All,

I have very unique problem of indexing status completing to 99.9% but never completes. What this means is that even though indexing is accomplished but indexing status remains on 99.9% and below two bars remain in uncompleted status. Even though 34008 increments automatically after recent activities on SVN but 34007 will increment only after restarting indexing process.  
Content indexed =================== 34007 of 34008  
Changesets done ================== 34007 of 34008  
So far this do not have any impact on code review process but as an administrator i am not happy about this status and want to get rid of problem. Anyone have come across this situation please help me.  
Thanks in advance


Answers:
author: Balbir Balli
body: Hi Taha,

I dont see any command hanging or taking more time and also timeout was increased as per our discussion. This repository just stays on same status forever.

Regards,

Balbir


author: Taha Khanzada
body: Check for Timeout error if any and try to increase the timeout and wait for reindexing to complete.


author: Pilar
body: I would suggest you to have a look at the logs and identify any errors in there.

Pilar


Tags: fisheye-crucible-administration
Both branchInCache and branchInScm not specified in onBranchHeadUpdated
Asked by Clark:

I'm getting this on a repo when it tries to index.


Answers:
author: Piotr Swiecicki
body: Is your repository a Mercurial one? You may want to look at this issue: <https://jira.atlassian.com/browse/FE-5687>, we have observed similar issues when non English locale was set.
Crucible Indexing is very slow and Stuck
Asked by Balbir Balli:

I have initiated the indexing of data and its very slow and stuck at svn diff command.

I know the revisions and branches i want to avoid and should not be considered for indexing therefore i have exclusions in place. Its seem below command is standard procedure Crucible is following to grab the changes or difference.

svn diff --summarize -r 90907:90908 file:///D:/SubversionMirrors/Repos/Directory@90908

These particular revision and some other include more than million transaction or changes and taking very long time because of which indexing has not completed yet and review requests don't have proper data.

I tried below option to resolve this:

1. Configured exclusions
2. Configured Symbolic rules
3. Increased subversion timeout period to 1 day
4. Tried fixing resource utilization to 1 and 3

Can anyone suggest me any option which can avoid svn diff command on the revision having million changes?

OR

How can i make my indexing faster and other issue i am in right now is indexing never completes but always show 99.9% completed.

Can anyone please help?


Answers:
author: Balbir Balli
body: Hi Taha,

I used "time ./jsvn diff --summarize" feature in FISHEYE_INSTANCE/lib/svn/jsvn to know the time it would take to complete the command. As per result it should have finished the process in 1hr and 3 minutes but to my surprise it is not.

I know the similar revision which have milion changes and will take time not sure how much. I want to avoid those revision as the operation performed on those revisions was svn move to archive outdated old branches.

If there is anyway to avoid this command on those revision that would help to resolve the problem.

Thanks for suggestion

Regards,

Balbir

comments: author: Taha Khanzada
body: You can tell Fisheye to Start Indexing from a particular revision but unfortunately you can't tell it to skip a particular revision.There is feature request with atlassian for this - <https://jira.atlassian.com/browse/FE-626>I agree if we have feature to skip revision then it would be very handy in these case. We also faced this kind of issue in the past but only way to get around is to increase the time out and wait for these revision to complete.What Atlassian suggested to improve performance is to use \*Native Subversion Client\* but haven't tried since it may increase memory usage during reindexing. You can check this document for more info<https://confluence.atlassian.com/fisheye/native-subversion-client-298976879.html>


author: Balbir Balli
body: Thanks i think you are right wait is good way to move ahead.


author: Taha Khanzada
body: Hi Balbir,

Firstly try to run this command on you Subversion Server itself and note down the timing

svn diff --summarize -r 90907:90908 file:///D:/SubversionMirrors/Repos/Directory@90908

Then try to increase subversion timeout, it can be more than 1 day as well.

Taha


Tags: fisheye-crucible-administration