#1027 open
Morgan Schweers

Can't create a Token for Administrators because they aren't members of the project

Reported by Morgan Schweers | July 21st, 2008 @ 10:07 AM

Greetings,

I can't create a token for myself for the JBidwatcher project because I'm not a member of the project. (I'm the administrator.) What this means, I believe, is that the API key which I can create is an 'All Accounts' token. I believe this causes the issue in #576, when commit messages are associated with the last commenter in a ticket.

In the Access and Permissions page, when I choose 'Set Permissions', I can't add myself to the JBidwatcher project. It's obviously on purpose, because it's grayed out, but (I believe) it means that my own name doesn't show up in the Create a Token account select box.

This means that the only thing I can choose is 'All Accounts', which results in an API token that (on Subversion commit via Warehouse hook) associates the commit-log message with the last commenter on a given issue.

I'm not sure why I can't be both Administrator and a member of a project, but could you at least add Administrators to the list of Create a Token accounts that you can pick from? Or maybe just the current user's account, if it's an Administrator?

That way I can at least have all commits show up as me posting the info, instead of a random user.

It's totally possible I've misinterpreted some of the settings, but right now this looks like the most likely path for the problem, and it's one of my biggest frustrations with Lighthouse.

Thanks for any help you can give!

-- Morgan Schweers

Comments and changes to this ticket

  • Morgan Schweers

    Morgan Schweers July 21st, 2008 @ 10:15 AM

    Greetings,

    This just struck me... Is it possible that the reason 'state:resolved' is never working for me, is that it's an 'All Accounts' token, not a token for someone who's actually a member of the project?

    -- Morgan Schweers

  • rick

    rick July 21st, 2008 @ 10:26 AM

    • → State changed from “new” to “open”
    • → Assigned user changed from “” to “rick”

    I'm confused, as far as I can tell, account owners can create tokens for specific projects. I confirmed with an account member and an account owner to be sure.

    The token doesn't affect how the changeset parsing works, it only logs you in to Lighthouse.

  • Will

    Will July 21st, 2008 @ 10:37 AM

    I cannot seem to replicate your issue as well. I setup a new account, which I am administrator of, and was able to add a key just fine.

    If you are set to administrator you are given full access to every project under that account, as well as access and permissions for that account.

    Then I set a secondary user to administrator, logged in under that profile, and again, was able to create a key as expected, for the account or for individual projects.

    Are you receiving an error? Or is the option just not there? Can you post a screenshot? what browser/os are you using?

  • Morgan Schweers
  • Morgan Schweers

    Morgan Schweers July 21st, 2008 @ 11:13 AM

    Greetings,

    I'm using Firefox 3.0.

    Here's a screenshot of the Lighthouse token creation. You'll see at the top I've created an 'All projects' token, because that's all I can create... (I mushed it out, because I don't recall offhand how visible attachments are.)

    I guess I expected I would see my account in the 'CREATE A TOKEN' dropdown.

    -- Morgan

  • Morgan Schweers

    Morgan Schweers July 21st, 2008 @ 11:15 AM

    Greetings,

    To be more specific, Firefox 3 on XP, although I don't believe the UI was any different when I was using Firefox 2. I believe I've tried under my Mac, but again it would mainly have been under Firefox, versions ranging from 2 to 3.

    -- Morgan

  • Morgan Schweers

    Morgan Schweers July 21st, 2008 @ 12:12 PM

    Greetings,

    I just created a new account to try and test this, and sure enough, I got exactly the same thing. I logged out, created a new free account, created a private project for the account, and went to 'My Profile'. The only options were exactly as the screenshot above.

    Further, I discovered that if I create an 'All accounts' token (which becomes 'All projects'), and then drill down to the token itself, I can change the project it's associated with. Once I did that, though, it vanished off the 'My Profile' page! I could get back to the token editing via the back button, but changing it back to All Projects didn't return it to the My Profile list of tokens.

    That was with Safari 3.1.2 on Windows XP, although the drop-down was identical under Firefox 3.0.1 on XP. Given the behavior, I can't imagine it's a browser/OS related issue, but I could be wrong.

    That user is #26723.

    -- Morgan

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Using Lighthouse to track Lighthouse.

Shared Ticket Bins

People watching this ticket

Tags