This page is no longer maintained — Please continue to the home page at www.scala-lang.org

Anonymously closing JIRA issues

8 replies
dubochet
Joined: 2008-06-30,
User offline. Last seen 1 year 36 weeks ago.
Hello Scalions.
I noted that issue SI-4642 is marked as having been closed by user "anonymous", although I think it was fixed by Paul. Is Paul's user name "anonymous"? Or is JIRA configured to allow unlogged users to close issues? In the latter case, I think it should be disallowed. This doesn't seem like something we want anyone to be able to do. Also, it makes understanding the history of an issue much harder.
Cheers,Gilles.
rytz
Joined: 2008-07-01,
User offline. Last seen 45 weeks 5 days ago.
Re: Anonymously closing JIRA issues
We run a script that analyzes commit messages and closes tickets. It uses JIRA'sREST API to do so. Since it needs to login somehow, it uses the "anonymous" user.
Not sure we can do something about it. Probably not through the REST API.
In crucible, for creating the review request, the plugin can do it through an instanceof the "ImpersonationService" class.
Lukas
On Fri, May 27, 2011 at 16:04, Gilles Dubochet <gilles.dubochet@epfl.ch> wrote:
Hello Scalions.
I noted that issue SI-4642 is marked as having been closed by user "anonymous", although I think it was fixed by Paul. Is Paul's user name "anonymous"? Or is JIRA configured to allow unlogged users to close issues? In the latter case, I think it should be disallowed. This doesn't seem like something we want anyone to be able to do. Also, it makes understanding the history of an issue much harder.
Cheers,Gilles.

extempore
Joined: 2008-12-17,
User offline. Last seen 35 weeks 3 days ago.
Re: Anonymously closing JIRA issues

On 5/27/11 7:04 AM, Gilles Dubochet wrote:
> I noted that issue SI-4642
> is marked as having been
> closed by user "anonymous", although I think it was fixed by Paul. Is
> Paul's user name "anonymous"? Or is JIRA configured to allow unlogged
> users to close issues? In the latter case, I think it should be
> disallowed. This doesn't seem like something we want anyone to be able
> to do. Also, it makes understanding the history of an issue much harder.

Yes, I wanted to bring this up too. It's the auto-close script,
reacting to my commit message. The script is a godsend: I am guessing
it just needs a little tweak to properly supply the identity of the closer.

(I don't think actual anonymous persons can run around closing issues,
though I could be wrong.)

prokopec
Joined: 2010-02-19,
User offline. Last seen 34 weeks 5 days ago.
Re: Anonymously closing JIRA issues
I would guess that the commit action triggered a script that does this, that's why it says it's anonymous.

Alex

On 27/05/11 16:04, Gilles Dubochet wrote:
Hello Scalions.
I noted that issue SI-4642 is marked as having been closed by user "anonymous", although I think it was fixed by Paul. Is Paul's user name "anonymous"? Or is JIRA configured to allow unlogged users to close issues? In the latter case, I think it should be disallowed. This doesn't seem like something we want anyone to be able to do. Also, it makes understanding the history of an issue much harder.
Cheers, Gilles.

Kevin Wright 2
Joined: 2010-05-30,
User offline. Last seen 26 weeks 4 days ago.
Re: Anonymously closing JIRA issues
I think we need to create a dedicated service user for each script that's able to take action in Jira like this, so it's more obvious exactly what's going on.


On 27 May 2011 15:20, Aleksandar Prokopec <aleksandar.prokopec@epfl.ch> wrote:
I would guess that the commit action triggered a script that does this, that's why it says it's anonymous.

Alex

On 27/05/11 16:04, Gilles Dubochet wrote:
Hello Scalions.
I noted that issue SI-4642 is marked as having been closed by user "anonymous", although I think it was fixed by Paul. Is Paul's user name "anonymous"? Or is JIRA configured to allow unlogged users to close issues? In the latter case, I think it should be disallowed. This doesn't seem like something we want anyone to be able to do. Also, it makes understanding the history of an issue much harder.
Cheers, Gilles.




--
Kevin Wright

gtalk / msn : kev.lee.wright@gmail.comkev.lee.wright@gmail.commail: kevin.wright@scalatechnology.com
vibe / skype: kev.lee.wrightquora: http://www.quora.com/Kevin-Wright
twitter: @thecoda

"My point today is that, if we wish to count lines of code, we should not regard them as "lines produced" but as "lines spent": the current conventional wisdom is so foolish as to book that count on the wrong side of the ledger" ~ Dijkstra
dubochet
Joined: 2008-06-30,
User offline. Last seen 1 year 36 weeks ago.
Re: Anonymously closing JIRA issues
In crucible, for creating the review request, the plugin can do it through an instanceof the "ImpersonationService" class.

And I guess there is no ImpersonationService in JIRA?
Kevin's idea of running a "personal" script for each Scala commiter may be a solution, albeit not very elegant. Lukas, is this doable?
Cheers,Gilles.
rytz
Joined: 2008-07-01,
User offline. Last seen 45 weeks 5 days ago.
Re: Anonymously closing JIRA issues


On Fri, May 27, 2011 at 16:49, Gilles Dubochet <gilles.dubochet@epfl.ch> wrote:
In crucible, for creating the review request, the plugin can do it through an instance of the "ImpersonationService" class.

That I don't know, but I know it's not exposed via REST. If it exists, we couldwrite a JIRA plugin instead of the current script, that should be doable.  

And I guess there is no ImpersonationService in JIRA?
Kevin's idea of running a "personal" script for each Scala commiter may be a solution, albeit not very elegant. Lukas, is this doable?

To login via REST you need the password, so this won't work. I think what Kevin meant was having a different username than "anonymous", something like"review-commenter-script".
Lukas
Kevin Wright 2
Joined: 2010-05-30,
User offline. Last seen 26 weeks 4 days ago.
Re: Anonymously closing JIRA issues


On 27 May 2011 15:55, Lukas Rytz <lukas.rytz@epfl.ch> wrote:


On Fri, May 27, 2011 at 16:49, Gilles Dubochet <gilles.dubochet@epfl.ch> wrote:
In crucible, for creating the review request, the plugin can do it through an instance of the "ImpersonationService" class.

That I don't know, but I know it's not exposed via REST. If it exists, we couldwrite a JIRA plugin instead of the current script, that should be doable.  

And I guess there is no ImpersonationService in JIRA?
Kevin's idea of running a "personal" script for each Scala commiter may be a solution, albeit not very elegant. Lukas, is this doable?

To login via REST you need the password, so this won't work. I think what Kevin meant was having a different username than "anonymous", something like"review-commenter-script".

Exactly.
and if other scripts should be introduced into the mix, then we'd create a separate user for each of them.

 
Lukas

--
Kevin Wright

iulian dragos 3
Joined: 2011-02-21,
User offline. Last seen 42 years 45 weeks ago.
Re: Anonymously closing JIRA issues


On Fri, May 27, 2011 at 4:55 PM, Lukas Rytz <lukas.rytz@epfl.ch> wrote:


On Fri, May 27, 2011 at 16:49, Gilles Dubochet <gilles.dubochet@epfl.ch> wrote:
In crucible, for creating the review request, the plugin can do it through an instance of the "ImpersonationService" class.

That I don't know, but I know it's not exposed via REST. If it exists, we couldwrite a JIRA plugin instead of the current script, that should be doable.

Maybe we should look at SOAP then. :) Maybe this could be used directly..
http://stackoverflow.com/questions/1501853/jira-code-validation-commit-hook-for-git  
 

And I guess there is no ImpersonationService in JIRA?
Kevin's idea of running a "personal" script for each Scala commiter may be a solution, albeit not very elegant. Lukas, is this doable?

To login via REST you need the password, so this won't work. I think what Kevin meant was having a different username than "anonymous", something like"review-commenter-script".
Lukas

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland