youngmon/atlassian-qna huggingface dataset:
Review Coverage of a single branch
Asked by Drew Reed:

How can I find out the review coverage of a single code branch using crusible/fisheye and git?

The reports show me the commits in a week and which ones have been reviewed but as a lot of our branches are personal developer and project branches where we don't require code reviews on all commits it very hard to find out the coverage level of our pre-release branch.

Drew


Answers:
author: John Werner
body: I've found a couple of ways to solve review coverage on branches, at least with SVN. I think it should work with GIT also, but YMMV.

**Use a Query**

1. Open a search view for a Source repository
   1. Select "Source" from the top menu
   2. Select the repository
   3. Select "Search" from the "tabs" on the right
   4. Select "Switch to EyeQL Search" from the bottom left of the left pane
2. For the Components, run this query and look for items with a blank in the "Reviews" column

   select revisions where not reviewed and not is deleted and is head on \*\*MY_BRANCH\*\* order by date desc group by changeset return path, revision, author, date, reviews

**Run the Code Coverage Report on the Branch**

The Coverage Report is run for the subtree of the repository File browser view from which it was called.

1. Open the repository view for the repository.
2. Select the appropriate branch and/or sub-tree
3. Select Reports from the "tabs" on the right
4. Select "Review Coverage"

comments: author: Alexander Taler
body: Both of these solutions require a Fisheye license, which ruled them out for me.


author: Drew Reed
body: Thanks we do have fisheye so I tried both methods.

The Query works but the Code Coverage Report method doesn't as the report is ignoring the selected branch and reporting for the whole repository.


author: John Werner
body: @Drew I'm glad at least one worked for you. For me, running with SVN repositories, both methods seem to work for me. I wonder if there is something slighly different between how things work with SVN and GIT.


author: Jin Gu
body: Hello John, the methods you listed above are using crucible, right? thank you!


author: Alexander Taler
body: Hi Drew,

I had exactly the same problem, and ended up writing a plugin to solve it. I've listed it as a paid-plugin on the Marketplace. Feel free to contact me privately to discuss.

<https://marketplace.atlassian.com/plugins/biz.deref.flyover.flyoverForCrucible>

Alex

comments: author: Drew Reed
body: Thanks for the pointer. I had seen the plugin but it's not very clear what reports it adds and since I don't have admin access to the server I couldn't install the trial version to find out. Are there screen shots/detailed descriptions of what it adds anywhere?


author: Alexander Taler
body: Good point. I have added more information to the plugin home page: <http://deref.co.nz/Flyover>


author: Drew Reed
body: I've asked our IT department to install the trial as it does look to be a clearer method of finding the answer.
Changing URL
Asked by shammack:

What setting do I need to change to be able to change the URL to connect to Fisheye? Right it works by connecting to (server):8060. I want to change it to an url that is set up in our internal DNS.


Answers:
author: C. Faysal
body: you may look at this kb article

<https://confluence.atlassian.com/display/FISHEYE/Integrating+with+other+web+servers>

<https://confluence.atlassian.com/display/FISHEYE/AJPv13+Authentication>

i believe your servername is in your DNS config anyway isn't it?

i assume you just want to change the address fisheye is responding to

comments: author: shammack
body: Yes, my servername is in my DNS config.

Thanks for the links but I'm running Fisheye in Windows Server 2008 R2. I'm guessing I have to set something up in IIS right?


author: C. Faysal
body: Oh i have no experience with IIS but i believe it must be something in there right


author: Teck-En
body: Hi AmericanTextile,

I guessed you can configured under Fisheye Administration \> Global Settings \> Server \> Web Server and configure based on your organization webserver?
How to restrict Crucible project access to only authors of commits on its default repository
Asked by Yves Martin:

I have setup LDAP restriction on each Crucible repository based on a group, which is already used to restrict Subversion commit thanks to a pre-commit hook.

The LDAP restriction is:

```
(&amp;(objectClass=person)(sAMAccountName=${USERNAME})(memberOf=CN=prj_MyProject,OU=Projects,OU=Groups,DC=mydomain,DC=com))
```

Now I want to apply the same kind of restriction for project and reviews.

So I have copied agile permission scheme and have removed All logged in users from View and Create permissions to rely on the Author review role, which is supposed to look at commit author field, based on user mapping, according to

<https://confluence.atlassian.com/display/CRUCIBLE/authors+in+Crucible>

I expect users that have already committed into a project's default repository are allowed to view and create reviews for that project.

But it does not work. Users in group prj_MyProject can browse repository commit but have no access to the corresponding project.

I have checked users' mapping information, because Crucible and Subversion usernames does not match implicitly.

Project's fields for Default reviewers and Allowed Review Participants are blank.

How to achieve such a setup (I am used to do with JIRA projects' role and permissions scheme) ?

Is my understanding of the Author Review role wrong ?

Thank you in advance for your help


Answers:
author: Yves Martin
body: Based on the answer I got from Atlassian Support, here is my current setup process to get such per-project restrictions (in additional to per-repository LDAP restriction):

* create a group "users-X" to list project "X" users
* create a scheme "agile-X" for each project "X", with "users-X" group in "View" and "Create" permissions

I agree it fulfills the security needs I have BUT it is really heavy to setup (compared to JIRA project roles and permission schemes for instance). I am still looking for ways to automate all that administrative work.


author: Avdhesh Chauhan
body: PLease check the view permission in your permission schme - may be its not mapped correctly

A person who has comitted cannot view the crucible project by default - it all depends on the view permission scheme

comments: author: Yves Martin
body: The View permission in scheme includes "Reviewer, Creator, Author, Moderator".

The answer I got from Atlassian Support was:

* create a group for a project users

- creat


author: Yves Martin
body: The View permission includes "Review Roles: Reviewer, Creator, Author, Moderator".


Tags: author

permission

role
Pre-commit code reviews w/Crucible
Asked by jeff davis:

I would like to enable the following work flow:

1. Dev team member makes a local change in a git repository.
2. Dev team member types something at the command similar to:  
   review [someone@example.com](mailto:someone@example.com) -m "Fix bug PRJ-1234."
3. A patch file is created and uploaded.  
   I suspect this can be done with the crucible command line tool?
4. An email is sent to [someone@example.com](mailto:someone@example.com) informing them they need to perform a code review. The email includes a link to fisheye / crucible land.
5. The reviewer reviews, comments, etc. Feedback is sent to the reviewee.
6. Dev team member makes changes and submits code.

Is this possible? If so, is there a nice easy example I can follow?


Answers:
author: Sten Pittet
body: Hi Jeff,

We do not have a native CLI to perform this action but you can try to leverage the [Crucible CLI plugin](https://marketplace.atlassian.com/plugins/org.swift.crucible.cli) from the Marketplace to build something similar.

Regards,

Sten Pittet  
FishEye / Crucible Product Manager

comments: author: jeff davis
body: Right. But seriously, nobody has ever wanted to easily do pre-commit code reviews?


author: Renjith Pillai
body: Frankly pre-commit code reviews are always performed by pairing rather than getting into Crucible. That is the fastest way to do it. And code reviews performed in Crucible on uncommitted code is quite fragile and there is no quanrantee that it really goes in when committed.


Tags: code-review

pre-commit
Is it possible to configure Crucible/Fisheye without Crowd or plug-ins to allow single sign-on?
Asked by David Nielsen:

Is it possible to configure Crucible/Fisheye without Crowd or plug-ins to allow single sign-on in a Windows-only environment with multiple browsers (IE, FF, Chrome)?


Answers:
author: Dennis Kromhout van der Meer
body: Unfortunately you can only integrate the systems into a single profile, for true single sign-on you'll need Crowd.


Tags: sso
Smart commits stopped working with JIRA On-Demand
Asked by alex-touchnote:

Hi,

We've been using smart commits for quite some time, but about a week or two ago they suddenly stopped working. We're using JIRA On-Demand woth FishEye SVN repo.

Right now we get an error like

"FishEye was unable to comment on the issue XX-NNNN. There is no mapped project "XX" for repository "YY".

I cannot find how to configure it anywhere. Please help.

Alex


Answers:
author: John Chin
body: Hi Alexey,

Since you're using JIRA OnDemand, can you file a ticket in [support.atlassian.com](http://support.atlassian.com) and request them to rebuilt the application links between JIRA and FishEye again?

Regards,

John Chin

comments: author: alex-touchnote
body: Hi John,

thanks for the advise, I've raised a ticket. I'll post here to report results.

Alex


author: alex-touchnote
body: This indeed worked perfectly well - all links rebuit and kicking!


author: Michael Knight
body: This is a known issue: <https://jira.atlassian.com/browse/AOD-6277>

[Support](https://support.atlassian.com/) can fix this up for you.


Tags: cloud

fisheye-crucible-svn-ondemand
Can I install Crucible on a platform as a service?
Asked by Brandon Brisbon:

I am interested in deploying crucible using appfog using their java jumpstart.


Answers:
author: Tom Davies
body: I have never used Appfog, but from a quick read through their website they appear to want Java applications to be deployed as a WAR: <https://docs.appfog.com/languages/java#deploy>

They presumably load this into their own servlet container. As FishEye/Crucible uses an embedded servlet container I don't think you can deploy it to Appfog. You would need to ask them whether 'stand alone' as oppsed to 'war' Java applications are supported.

You certainly can use Amazon's EC2, because it simply gives you a plain virtual machine to install anything you like on, and you could not use Google AppEngine, because it demands that your application be written to a particular API.


author: JohnA
body: Hi there,

Crucible can be run as a Windows Service, and in these cases we use the [Java Service Wrapper](http://wrapper.tanukisoftware.org/doc/english/introduction.html), so if Appfog's Java Jumpstart is compatible with that then I guess it would be possible.

All the best,  
John

comments: author: Tom Davies
body: I don't think AppFog use Windows
smart commits not working
Asked by carlitos.melgar@izote.net:

How can i troubleshoot smart commits in Jira? After I upgraded a few months ago (I am assuming) this feature stopped working.


Answers:
author: Felipe Kraemer
body: Hi Carlitos,

I believe the first step in order to troubleshoot this issue is to investigate the application versions:

* As far as I understand, you've upgraded FishEye, correct? What was the old version number?
* What is your JIRA version?
* What is your JIRA FishEye Plugin version?

Have the smart commits stopped working completely, or some of the functionalities still work? Remember you can use smart commits to transition JIRA issues, comment on JIRA issues, log work on JIRA issues, etc...

Can you please check if Smart Commits are still [enabled](https://confluence.atlassian.com/display/FISHEYE/Enabling+Smart+Commits) and if you're still using the correct [syntax](https://confluence.atlassian.com/display/FISHEYE/Using+smart+commits)? Can you provide us with a sample Smart Commit you're using?

Does it work for some users, or it doesn't work for anyone at all?

comments: author: carlitos.melgar@izote.net
body: Apparently it's some permission issue between Jira and Fisheye. Not sure why it stopped working. It was definitely working before. I'm using Jira as a User Server. Atlassian support is looking at it. Any ideas are welcome.


author: carlitos.melgar@izote.net
body: it was a bad application link.
Can not integrate crucible and jira
Asked by Scott Bauer:

My configuration

Jira

2 Connectors

1 listening on port 8080 for https requests. (for outside traffic proxied through Apache)

1 listening on port 8081 for http requests. (for communicating with other Atlassian products. for instance, it is set up to communicate with Stash on this port)

\<connector port="8080" \<="" p=""\>

maxThreads=150

minSpareThreads=25

connectionTimeout=20000

enableLookups=false

maxHttpHeaderSize=8192

protocol=HTTP/1.1

useBodyEncodingForURI=true

redirectPort=8443

acceptCount=100

disableUploadTimeout=true

scheme=https

[proxyName=www.myurl.com](http://proxyName=www.myurl.com)

proxyPort=443/\>

\<connector port="8081" \<="" p=""\>

maxThreads=150

minSpareThreads=25

connectionTimeout=20000

enableLookups=false

maxHttpHeaderSize=8192

protocol=HTTP/1.1

useBodyEncodingForURI=true

redirectPort=8443

acceptCount=100

disableUploadTimeout=true/\>

\<context path="/jira" \<="" p=""\>

Crucible

\<web-server context="/fisheye"\>

\<http bind=":8060" proxy-port="443" proxy-scheme="https" proxy-host="www.myurl.com/"\>

Ideally, I'd be able to set up a http port in crucible for communicating with other Atlassian products behind our firewall, but that doesn't seem to be supported?

I'm trying to set up the application link between Jira and Crucible following the instructions here. <https://confluence.atlassian.com/display/CRUCIBLE/JIRA+Integration+in+Crucible>

In crucible, I go to Add Application Link.

Step 1. For the server URL I put in <http://192.168.1.88:8081/jira>. which can be navigated to on our network just fine. click next.

Step 2. I enter the username and password. The Reciprocal link URL says <https://www.myurl.com/fisheye>. I can go to that url on a browswer just fine, but when I click next I get an error message that says.

The Remote application is not able to connect to 'www'(FishEye / Crucible) by using the URL 'https://www.myurl.com/fisheye'.

Any ideas?

<br />


Answers:
author: Renjith Pillai
body: 1. Is the URL <https://www.myurl.com/fisheye> accessible from the JIRA server?
2. Is the SSL certificate for Fisheye imported into JIRA JVM keystore?
3. What does the logs JIRA logs say?

Hint: Use the Hercules scan in support tools in JIRA administration and it will suggest the articles that will point you to the right direction.
I found that fisheye can add a single git repository,Does fisheye has some mechanism to support repo,which developed by google to manager multiple git repositories,so that users can only add a repo manifest file rather than add all the git repositories
Asked by Kan Fu:

I found that fisheye can add a single git repository,Does fisheye has some mechanism to support repo,which developed by google to manager multiple git repositories,so that users can only add a repo manifest file rather than add all the git repositories in repo.


Answers:
author: LucasA
body: Hi,

I don't know how standalone GIT works, but you can manage one Bitbucket team account with multiples GIT repositories.

Please take a better look into Stash, our "behind the firewall" Bitbucket, or try Bitbucket itself. Maybe these solutions are the best option for your case.

Lucas Lima

comments: author: Felipe Cuozzo
body: Also please read this:

[FishEye, Crucible, Subversion OnDemand End of Service](https://confluence.atlassian.com/display/AOD/FishEye%2C+Crucible%2C+Subversion+OnDemand+End+of+Service) {#toc-hId-1646639865}
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Tags: cloud

fisheye-crucible-svn-ondemand
Dashboard for authors
Asked by Alex Lukashov:

Hi

We've started using FishEye and Crucible recently and there is one thing I'm not sure I understand about Crucisble's dashboard

It shows me reviews where I participate as either moderator or reviewer. But my team complains that if they are set as authors only there is no way to easy find such reviews, only via advanced search.

I'm not sure why it's so becuase my understanding is that if a person is set as author while moderator and reviewers are different persons then Author should have an easy way to find out which reviews are waiting for him to fix found defects.


Answers:
author: Sten Pittet
body: Hi Alexander,

Authors should see their reviews in the Outbox section of the dashboard, either under the Out For Review filter or the Completed filter. Could you tell me if you see your reviews there?

Cheers,

Sten

comments: author: Alex Lukashov
body: I see what's the problem now

We tend to create a review with only two participants: author and moderator. And moderator performs a review. In this case Author doesn't see anything in his dashboard. Author will be able to see such a review only in case there is at least one reviewer, thus it requres three persons.

The funny thing is that if moderator role is enabled it becomes a mandatory to have a moderator in the review, but having at least one reviewer isn't a mandatory - is this something we can change somewhere in the Crucible?

Another thing is that when I disable moderator role, and attempt to create a review it's immediately got created without even showing me Edit Details screen, and created review contains only one participant - Author, I don't think this is an intuitive behaviour.


author: Sten Pittet
body: I added a comment to your [JIRA issue](https://jira.atlassian.com/browse/CRUC-6320) regarding that. I think that the best is probably to change the behavior of the dashboard and to make sure that authors can always find their reviews in their dashboard. Making reviewers mandatory would force an extra step which is not always necessary in your case. Moreover in some workflows people can have an opt-in process where people choose which reviews they want to participate in after it's been shared with a group.


author: Alex Lukashov
body: Well, I didn't propose to force having at least one reviewer. I propose to add such a setting which can force it so it can be used by teams which really needs this feature.


author: Alex Lukashov
body: So no one knows? Kinda strange=))))
Email notifications are not working
Asked by Gary Cane:

Whenever an action is taken in Crucible that should generate an email, the emails are not being received.

The Fisheye / Crucible mail server is configured -- our email server is setup to require a login and a valid user name and password are set. It appears that all works OK when 'Send test email' is attempted.

Looking at the log file in C: FISHEYE_Home var log I see the following error messages when notification emails should be sent from Crucible:

INFO \| jvm 2 \| 2012/12/21 14:12:59 \| 2012-12-21 14:12:59,829 ERROR - problem sending email

INFO \| jvm 2 \| 2012/12/21 14:12:59 \| com.sun.mail.smtp.SMTPSendFailedException: 550 5.7.1 Client does not have permissions to send as this sender

We are running Small Business Server 2011 and Exchange 2010. I believe I have relaying enabled correctly for the internal IP addresses. Also, we have JIRA, Confluence, and Bamboo running at our site and have no issues with notification emails being sent.

Thanks in advance for any help you can provide.

Gary Cane

<br />


Answers:
author: Gary Cane
body: Make sure to check the radio button for send emails from server address or user address on the mail server setup page . . . in my case it was set to user address and the user address was not a fully qualified email address. The server then treated the email as a relay request from an untrusted source.

comments: author: Paresh Gandhi
body: where to enable that radio button. I don't see on my confluence page.

I know it's very old post however thought of seeking help.


author: chris cipolla
body: @Pareshkumar Gandhi, did you ever find this as i am not seeing the radio in version 7.1.7


author: Naren
body: Hi Gary,

Please refer [this](https://confluence.atlassian.com/display/JIRAKB/550+5.7.1+Unable+to+Relay+Mail+From+Exchange+Server) KB available for the error.

```
com.sun.mail.smtp.SMTPSendFailedException: 550 5.7.1
```

Hope this helps!

comments: author: Gary Cane
body: Turned out this was a setup issue. I had missed the radio button for Send emails from 'the server address or the user address'. This was set to the user address (which did not have a fully qualified name). When I changed it to server address the emails started working.

Thanks for your help . . .

Gary


Tags: smtp
Could not initialize class sun.awt.X11FontManager on charts
Asked by Gary Williams:

You are running release CR2.9.2 FE2.9.2 (20121210041242 2012-12-10), please report your release number when reporting bugs.

I am getting a

```
Could not initialize class sun.awt.X11FontManagererror
```

on all charts which is causing them not to render.


Answers:
author: Gary Williams
body: So, it appears that one of the causes of this could have been not having dejavu font installed. However, in my case this was not true. I did have it installed. After fiddling with it for an hour or so I ended up completely uninstalling OpenJDK from my CentOS box along with uninstalling the JDK I had downloaded from Sun and reinstalling from the rpm.

Charts now render correctly.


author: Daniel R
body: Hello LogicBomb Media,

I'm glad you were able to get it working. Per our [supported platforms](https://confluence.atlassian.com/display/FISHEYE/Supported+platforms "supported platforms page") we don't currently test with OpenJDK and highly recommend using one of Oracle's current distributions.

Thank you


author: Satya
body: I am not using open JDK and am using Oracle current JDK 1.7 and am still getting the same error. Please advice  
Error  
Internal Server Error  
Error 2  
A java.lang.NoClassDefFoundError was encountered  

Could not initialize class sun.awt.X11FontManager  
You are running release FE2.9.2 (20121210041242 2012-12-10), please report your release number when reporting bugs.

comments: author: Daniel R
body: Hello Satya,

Please open a support ticket at [support.atlassian.com](http://support.atlassian.com) for further investigation.

Thank you


author: Satya
body: I am having the same problem and JDK reinstall is not helping. I have CentOS

comments: author: Gary Williams
body: Satya,

Be sure not to just reinstall the JDK from yum. You'll want to complete uninstall OpenJDK from yum and then manually download the JDK from Sun and install via RPM.

**Edit**

I just saw your comment below: Have you confirmed that you have the dajavu font installed?


Tags: chart