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

user:sync -u is buggy #515

Closed
voroyam opened this issue Feb 12, 2020 · 5 comments
Closed

user:sync -u is buggy #515

voroyam opened this issue Feb 12, 2020 · 5 comments
Labels

Comments

@voroyam
Copy link

voroyam commented Feb 12, 2020

If you try to sync a user, that does not exist, the message is the same as if he existed and does not exist anymore. ownCloud asks what to do and you can delete or disable.

How can you remove something that was not there in the first place???

Who tested this new command flag?

@phil-davis
Copy link
Contributor

Also see issue #511 - user:sync of a user that is actually a local user (never came from LDAP in the first place).

We are adding some/more/better acceptance test coverage of user:sync owncloud/core#36597

We will add test scenarios like this, to demonstrate "bad behaviour"

@voroyam
Copy link
Author

voroyam commented Feb 12, 2020

I would like to know how this was tested before release?

Or do we just release stuff without testing it?

@phil-davis
Copy link
Contributor

Looks -u was introduced in PR owncloud/core#30485 (backport to stable10 owncloud/core#31025 ) in April 2018. So it is not so "new" - been there sine 10.0.8 by the look of it.

Back then we did not have automated test coverage for occ commands. I can't say exactly what scenarios were manually tested at the time (or if it worked then and now has a problem/regression in behaviour). Over time we are expanding automated test coverage. We have recently been adding scenarios for the user:sync command. The automated test scenarios will ensure that regressions do not easily happen.

@voroyam
Copy link
Author

voroyam commented Feb 13, 2020

I like what you wrote. I would just write "no idea" but that's unprofessional :)

@phil-davis
Copy link
Contributor

PR #517 has added a test scenario that demonstrates this "feature/bug".

When someone adjusts the behavior, they will need to adjust the test scenario also and remove the issue tag.

@voroyam voroyam closed this as completed Mar 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants