Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

creating user without password is possible #1416

Closed
dpakach opened this issue Sep 4, 2020 · 4 comments
Closed

creating user without password is possible #1416

dpakach opened this issue Sep 4, 2020 · 4 comments

Comments

@dpakach
Copy link
Contributor

dpakach commented Sep 4, 2020

Actual behavior

When we create an user without any password, it is created successfully

❯ curl -s -k -X POST https://localhost:9200/ocs/v1.php/cloud/users -d username=user4 -d userid=user4 -d email=user4@owncloud.org -u  admin:admin | xmllint --format -
<?xml version="1.0" encoding="UTF-8"?>
<ocs>
  <meta>
    <status>ok</status>
    <statuscode>100</statuscode>
    <message>OK</message>
  </meta>
  <data>
    <enabled>true</enabled>
    <id>user4</id>
    <username>user4</username>
    <displayname/>
    <email>user4@owncloud.org</email>
    <uidnumber>0</uidnumber>
    <gidnumber>0</gidnumber>
  </data>
</ocs>

Expected behavior

It should fail and give proper error message.

@haribhandari07 haribhandari07 transferred this issue from owncloud/ocis-ocs Jan 25, 2021
@micbar micbar mentioned this issue Feb 17, 2021
16 tasks
@phil-davis
Copy link
Contributor

@dpakach this is an old issue that was transferred from the archived ocis-ocs repo a few weeks ago.
Please close if no longer relevant.

I don't see anything in expected-failures with this issue.

@dpakach
Copy link
Contributor Author

dpakach commented Feb 25, 2021

Issue is still exists

ocis/ocis on  master [?] via 🐹 v1.15.6 
❯ curl -s -k -X POST https://localhost:9200/ocs/v1.php/cloud/users -d username=user4 -d userid=user4 -d email=user4@owncloud.org -u  admin:admin  | xmllint --format -
<?xml version="1.0" encoding="UTF-8"?>
<ocs>
  <meta>
    <status>ok</status>
    <statuscode>100</statuscode>
    <message>OK</message>
  </meta>
  <data>
    <enabled>true</enabled>
    <id>user4</id>
    <display-name>user4</display-name>
    <displayname>user4</displayname>
    <email>user4@owncloud.org</email>
    <uidnumber>20005</uidnumber>
    <gidnumber>30000</gidnumber>
  </data>
</ocs>


ocis/ocis on  master [?] via 🐹 v1.15.6 
❯ curl -s -k -X POST http://localhost/ocs/v1.php/cloud/users -d username=user4 -d userid=user4 -d email=user4@owncloud.org -u  admin:admin | xmllint --format - 
<?xml version="1.0"?>
<ocs>
  <meta>
    <status>failure</status>
    <statuscode>101</statuscode>
    <message>A valid password must be provided</message>
  </meta>
  <data/>
</ocs>

@settings settings bot removed the p3-medium label Apr 7, 2021
@stale
Copy link

stale bot commented Jun 6, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Status:Stale label Jun 6, 2021
@stale stale bot closed this as completed Jun 16, 2021
@stale stale bot removed the Status:Stale label Jun 18, 2021
@stale
Copy link

stale bot commented Aug 17, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Status:Stale label Aug 17, 2021
@stale stale bot closed this as completed Aug 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants