You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by GitBox <gi...@apache.org> on 2020/09/24 13:38:22 UTC

[GitHub] [cloudstack-primate] DaanHoogland opened a new issue #749: [BUG] Domain admin cannot create a second user in an account

DaanHoogland opened a new issue #749:
URL: https://github.com/apache/cloudstack-primate/issues/749


   **Describe the bug**
   both new and old UI fail but indifferent ways.
   
   **To Reproduce**
   Steps to reproduce the behavior:
   
   1. Log in as a Domain Admin
   1. Create a child domain to yours
   1. Create a Domain admin account in the child domain
   1. try to create a second user in the same account in the child domain
   
   **Expected behavior**
   the user should be created without problem.
   * in primate an error is thrown
   * in the old UI the child domain cannot be selected to create the user in
   
   **Screenshots**
   <img width="941" alt="image" src="https://user-images.githubusercontent.com/2486961/94151849-2990a800-fe7b-11ea-86d3-ead1944f5b21.png">
   
   <img width="644" alt="Screenshot 2020-09-24 at 15 33 56" src="https://user-images.githubusercontent.com/2486961/94152043-6d83ad00-fe7b-11ea-9d4f-952badcf2ba0.png">
   
   **Desktop (please complete the following information):**
    - OS: [e.g. Windows, Mac, iOS, Android with device/screen details if applicable]
    - Browser [e.g. chrome, safari]
    - Version [e.g. 22]
   
   **Additional context**
   Add any other context about the problem here.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-primate] davidjumani commented on issue #749: [BUG] Domain admin cannot create a second user in an account

Posted by GitBox <gi...@apache.org>.
davidjumani commented on issue #749:
URL: https://github.com/apache/cloudstack-primate/issues/749#issuecomment-700551719


   @utchoang This will require a backend fix. I'll change the front end to a dropdown too while I'm at it. Thanks!


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-primate] davidjumani closed issue #749: [BUG] Domain admin cannot create a second user in an account

Posted by GitBox <gi...@apache.org>.
davidjumani closed issue #749:
URL: https://github.com/apache/cloudstack-primate/issues/749


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-primate] rhtyd closed issue #749: [BUG] Domain admin cannot create a second user in an account

Posted by GitBox <gi...@apache.org>.
rhtyd closed issue #749:
URL: https://github.com/apache/cloudstack-primate/issues/749


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-primate] davidjumani commented on issue #749: [BUG] Domain admin cannot create a second user in an account

Posted by GitBox <gi...@apache.org>.
davidjumani commented on issue #749:
URL: https://github.com/apache/cloudstack-primate/issues/749#issuecomment-700585747


   @DaanHoogland this fails via the old ui too, on trying to create an account (user) within an existing account via the createAccount command
   
   ![Screenshot from 2020-09-29 15-01-42](https://user-images.githubusercontent.com/8244774/94541001-b44f1980-0264-11eb-9135-051a2021d811.png)
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-primate] rhtyd commented on issue #749: [BUG] Domain admin cannot create a second user in an account

Posted by GitBox <gi...@apache.org>.
rhtyd commented on issue #749:
URL: https://github.com/apache/cloudstack-primate/issues/749#issuecomment-699934244


   cc @davidjumani @andrijapanicsb - any view on this?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-primate] DaanHoogland commented on issue #749: [BUG] Domain admin cannot create a second user in an account

Posted by GitBox <gi...@apache.org>.
DaanHoogland commented on issue #749:
URL: https://github.com/apache/cloudstack-primate/issues/749#issuecomment-700675419


   I disagree, and this should be solved asap. It may only be a doc entry somewhere but it is very confusing that as the form starts with username a user would expect to be free to create any user that doesn't exist yet.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-primate] DaanHoogland commented on issue #749: [BUG] Domain admin cannot create a second user in an account

Posted by GitBox <gi...@apache.org>.
DaanHoogland commented on issue #749:
URL: https://github.com/apache/cloudstack-primate/issues/749#issuecomment-699803261


   @utchoang that is not an option as users can also enter a non existing account name to create an account name different than the username


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-primate] davidjumani commented on issue #749: [BUG] Domain admin cannot create a second user in an account

Posted by GitBox <gi...@apache.org>.
davidjumani commented on issue #749:
URL: https://github.com/apache/cloudstack-primate/issues/749#issuecomment-703395735


   Closing as there is a fix in cloudstack


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-primate] DaanHoogland commented on issue #749: [BUG] Domain admin cannot create a second user in an account

Posted by GitBox <gi...@apache.org>.
DaanHoogland commented on issue #749:
URL: https://github.com/apache/cloudstack-primate/issues/749#issuecomment-700587683


   tnx @davidjumani, I think an edit of the hint text should do. ("account must not exist")


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-primate] davidjumani commented on issue #749: [BUG] Domain admin cannot create a second user in an account

Posted by GitBox <gi...@apache.org>.
davidjumani commented on issue #749:
URL: https://github.com/apache/cloudstack-primate/issues/749#issuecomment-700549300


   @DaanHoogland It looks like the backend checks whether the account exists even though it claims to just create a user if the account exists. Will create a fix for it 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-primate] rhtyd commented on issue #749: [BUG] Domain admin cannot create a second user in an account

Posted by GitBox <gi...@apache.org>.
rhtyd commented on issue #749:
URL: https://github.com/apache/cloudstack-primate/issues/749#issuecomment-700656957


   Closing on the test remark, please reopen and move to 1.1 if you disagree @DaanHoogland 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-primate] utchoang commented on issue #749: [BUG] Domain admin cannot create a second user in an account

Posted by GitBox <gi...@apache.org>.
utchoang commented on issue #749:
URL: https://github.com/apache/cloudstack-primate/issues/749#issuecomment-699871592


   @rhtyd @davidjumani The problem, when I change the accounting field to a Combobox, is when I add an account with `accountid` selected, there is an error from the API that says` Internal error executing command, please contact your system administrator`. So is the API side not allowing add accounts in an existing account, right?
   ![image](https://user-images.githubusercontent.com/13766648/94410592-bac88d00-01a1-11eb-9c28-a063e2570ec5.png)
   ![image](https://user-images.githubusercontent.com/13766648/94410763-efd4df80-01a1-11eb-85ee-245a6f970b1f.png)
   ![image](https://user-images.githubusercontent.com/13766648/94410784-f6635700-01a1-11eb-8a80-261d562a14e8.png)
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-primate] ravening commented on issue #749: [BUG] Domain admin cannot create a second user in an account

Posted by GitBox <gi...@apache.org>.
ravening commented on issue #749:
URL: https://github.com/apache/cloudstack-primate/issues/749#issuecomment-698998889


   @DaanHoogland I was not able to reproduce the issue
   
   1. I have a domain "test" with account name "test" with "domain admin" access and username "test1"
   2. Login to the domain admin account with "test1/test1/test" as username/password/domain
   3. Now I create one more domain under test with name "test-11"
   4. I create a new "domain admin" account with name "test-11-account" and first user with name "test-11-user" under domain "test-11"
   5. Now I will try to create another user under account "test-11-account" with name "test-12-user"
   6. Didnt see any error
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-primate] rhtyd edited a comment on issue #749: [BUG] Domain admin cannot create a second user in an account

Posted by GitBox <gi...@apache.org>.
rhtyd edited a comment on issue #749:
URL: https://github.com/apache/cloudstack-primate/issues/749#issuecomment-700572264


   The apidocs for `createAccount` says:
   ```
   account                  string   Creates the user under the specified acco
                                     unt. If no account is specified, the use
                                     rname will be used as the account name.
   ```
   
   So, this is correct if you're trying to create another account with the same, already existing user name. Instead to add account form, you can go to the account -> view users and add user there.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-primate] rhtyd commented on issue #749: [BUG] Domain admin cannot create a second user in an account

Posted by GitBox <gi...@apache.org>.
rhtyd commented on issue #749:
URL: https://github.com/apache/cloudstack-primate/issues/749#issuecomment-700585257


   @utchoang that's not necessary, as @DaanHoogland comments the best thing would be to check the old UI and then this issue becomes a non-issue or a valid bug based on that.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-primate] utchoang commented on issue #749: [BUG] Domain admin cannot create a second user in an account

Posted by GitBox <gi...@apache.org>.
utchoang commented on issue #749:
URL: https://github.com/apache/cloudstack-primate/issues/749#issuecomment-700574938


   @rhtyd If I using `accountid`, Can I create an account into an account?
   ![image](https://user-images.githubusercontent.com/13766648/94538707-8bcc1d00-026e-11eb-94dd-ed5d6bbe81f1.png)
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-primate] DaanHoogland commented on issue #749: [BUG] Domain admin cannot create a second user in an account

Posted by GitBox <gi...@apache.org>.
DaanHoogland commented on issue #749:
URL: https://github.com/apache/cloudstack-primate/issues/749#issuecomment-699033871


   @ravening the error is when you create account but enter the same name as the original account. a bit of a strange use case but it is documented to work fine. So don't "+ Add User" but "+ Add Account". You see in the help of the account field of that dialog that it is supposed to work.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-primate] ravening commented on issue #749: [BUG] Domain admin cannot create a second user in an account

Posted by GitBox <gi...@apache.org>.
ravening commented on issue #749:
URL: https://github.com/apache/cloudstack-primate/issues/749#issuecomment-699158463


   > @ravening the error is when you create account but enter the same name as the original account. a bit of a strange use case but it is documented to work fine. So don't "+ Add User" but "+ Add Account". You see in the help of the account field of that dialog that it is supposed to work.
   
   @DaanHoogland i didn't see add account option while adding second user


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-primate] utchoang commented on issue #749: [BUG] Domain admin cannot create a second user in an account

Posted by GitBox <gi...@apache.org>.
utchoang commented on issue #749:
URL: https://github.com/apache/cloudstack-primate/issues/749#issuecomment-699813203


   @DaanHoogland @rhtyd I mean, it will be both an option and an input field that allows creating an account?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-primate] davidjumani commented on issue #749: [BUG] Domain admin cannot create a second user in an account

Posted by GitBox <gi...@apache.org>.
davidjumani commented on issue #749:
URL: https://github.com/apache/cloudstack-primate/issues/749#issuecomment-701152800


   @DaanHoogland Updated the doc at https://github.com/apache/cloudstack/pull/4354


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-primate] DaanHoogland commented on issue #749: [BUG] Domain admin cannot create a second user in an account

Posted by GitBox <gi...@apache.org>.
DaanHoogland commented on issue #749:
URL: https://github.com/apache/cloudstack-primate/issues/749#issuecomment-700581759


   Let's check the old UI behaviour. I recall this passing (might have been in the API, not UI) For automation allowing to specify an existing account would be very useful, but i'm not hellbound on it. It is intuitive to just create users like this, so if we don't fix the code we must be more clear in the doc/hint.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-primate] davidjumani edited a comment on issue #749: [BUG] Domain admin cannot create a second user in an account

Posted by GitBox <gi...@apache.org>.
davidjumani edited a comment on issue #749:
URL: https://github.com/apache/cloudstack-primate/issues/749#issuecomment-700549300


   @DaanHoogland It looks like the backend checks whether the account exists even though it claims to just create a user if the account exists. Fixed via https://github.com/apache/cloudstack/pull/4353


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-primate] rhtyd commented on issue #749: [BUG] Domain admin cannot create a second user in an account

Posted by GitBox <gi...@apache.org>.
rhtyd commented on issue #749:
URL: https://github.com/apache/cloudstack-primate/issues/749#issuecomment-700788677


   @DaanHoogland I see it has been confirmed to be failing against  old UI as well, this is not a blocker as the form in Primate has same UX as the old UI. I've moved it to 1.1.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-primate] davidjumani commented on issue #749: [BUG] Domain admin cannot create a second user in an account

Posted by GitBox <gi...@apache.org>.
davidjumani commented on issue #749:
URL: https://github.com/apache/cloudstack-primate/issues/749#issuecomment-700576872


   @rhtyd From my understanding, it'll just create a user in the specified account if passed, but while trying it, a new username in an existing account, I'm still getting the account exists error


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-primate] DaanHoogland commented on issue #749: [BUG] Domain admin cannot create a second user in an account

Posted by GitBox <gi...@apache.org>.
DaanHoogland commented on issue #749:
URL: https://github.com/apache/cloudstack-primate/issues/749#issuecomment-699821469


   a combibox would be ok, i guess.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-primate] rhtyd commented on issue #749: [BUG] Domain admin cannot create a second user in an account

Posted by GitBox <gi...@apache.org>.
rhtyd commented on issue #749:
URL: https://github.com/apache/cloudstack-primate/issues/749#issuecomment-700572264


   The apidocs for `createAccount` says:
   ```
   account                  string   Creates the user under the specified acco
                                     unt. If no account is specified, the use
                                     rname will be used as the account name.
   ```
   
   So, this is correct if you're trying to create another account with the same, already existing user name. Instead to add user, you can go to the account -> view users and add user there.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [cloudstack-primate] utchoang commented on issue #749: [BUG] Domain admin cannot create a second user in an account

Posted by GitBox <gi...@apache.org>.
utchoang commented on issue #749:
URL: https://github.com/apache/cloudstack-primate/issues/749#issuecomment-699754037


   In my opinion, to solve the problem, the field account will be a selection for choosing accounts instead of input. @rhtyd What do you think?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org