You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/05/30 21:03:04 UTC
[jira] [Commented] (TC-359) TO API - Cannot update user thru the
api
[ https://issues.apache.org/jira/browse/TC-359?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16030118#comment-16030118 ]
ASF GitHub Bot commented on TC-359:
-----------------------------------
GitHub user mitchell852 opened a pull request:
https://github.com/apache/incubator-trafficcontrol/pull/624
[TC-359] - fixes bug where updating a user always returned "email taken" or "use…
…rname taken". well of course it's taken...it's taken by the user that I'm trying to update...also, registration_sent is a timestamp, not a boolean..and also, regex is confusing...
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/mitchell852/incubator-trafficcontrol tc-359-fixes-user-update
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-trafficcontrol/pull/624.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #624
----
commit 652bb007e6e9c81a9a968f73b8ee6f5a04f07426
Author: Jeremy Mitchell <mi...@gmail.com>
Date: 2017-05-30T21:00:39Z
fixes bug where updating a user always returned "email taken" or "username taken"
----
> TO API - Cannot update user thru the api
> ----------------------------------------
>
> Key: TC-359
> URL: https://issues.apache.org/jira/browse/TC-359
> Project: Traffic Control
> Issue Type: Bug
> Components: Traffic Ops API
> Reporter: Jeremy Mitchell
> Assignee: Jeremy Mitchell
>
> If you try to update a user using the API (PUT /api/*/users/:id) you'll always get:
> email is taken
> username is taken
> this is because email and username are unique so a search is performed to see if anyone is using email or username but it does not exclude the user your are trying to edit from that search.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)