You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2021/11/21 20:24:23 UTC

[GitHub] [trafficcontrol] ocket8888 opened a new issue #6367: PUT /user/current doesn't work

ocket8888 opened a new issue #6367:
URL: https://github.com/apache/trafficcontrol/issues/6367


   ## This Bug Report affects these Traffic Control components:
   - Traffic Ops
   
   ## Current behavior:
   A PUT request `/user/current` is incapable of modifying anything about the current user - except that it does update `lastUpdated`.
   
   ## Expected behavior:
   You should be able to update your user using a PUT request to `/user/current`, as this was possible in previous Traffic Ops versions.
   
   ## Steps to reproduce:
   1. GET `/user/current` e.g.
   ```json
   {
   	"response": {
   		"username": "quest",
   		"localUser": true,
   		"roleName": "admin",
   		"addressLine1": null,
   		"addressLine2": null,
   		"city": null,
   		"company": null,
   		"country": null,
   		"email": "email@addr.com",
   		"fullName": "test",
   		"gid": null,
   		"id": 13,
   		"newUser": false,
   		"phoneNumber": null,
   		"postalCode": null,
   		"publicSshKey": null,
   		"role": 1,
   		"stateOrProvince": null,
   		"tenant": "root",
   		"tenantId": 1,
   		"uid": null,
   		"lastUpdated": "2021-11-21 20:22:31+00"
   	}
   }
   ```
   2. Change anything, or even everything if you want, and submit it in a PUT request to `/user/current` e.g.
   ```json
   {
           "username": "queste",
           "registrationSent": "2021-11-21 20:11:24+00",
           "roleName": "admin",
           "addressLine1": "addressLine1",
           "addressLine2": "addressLine2",
           "city": "city",
           "company": "company",
           "country": "country",
           "email": "address@mail.com",
           "fullName": "testquest",
           "gid": 7,
           "id": 18,
           "newUser": true,
           "phoneNumber": "phoneNumber",
           "postalCode": "postalCode",
           "publicSshKey": "SSH",
           "role": 2,
           "stateOrProvince": "state",
           "tenant": "roote",
           "tenantId": 2,
           "uid": 8,
           "lastUpdated": "2021-11-21 20:11:25+00",
           "token": "token",
           "localUser": false
   }
   ```
   3. Notice the response changed nothing e.g.
   ```json
   {
   	"alerts": [
   		{
   			"text": "User profile was successfully updated",
   			"level": "success"
   		}
   	],
   	"response": {
   		"username": "quest",
   		"registrationSent": null,
   		"roleName": "admin",
   		"addressLine1": null,
   		"addressLine2": null,
   		"city": null,
   		"company": null,
   		"country": null,
   		"email": "email@addr.com",
   		"fullName": "test",
   		"gid": null,
   		"id": 13,
   		"newUser": false,
   		"phoneNumber": null,
   		"postalCode": null,
   		"publicSshKey": null,
   		"role": 1,
   		"stateOrProvince": null,
   		"tenant": "root",
   		"tenantId": 1,
   		"uid": null,
   		"lastUpdated": "2021-11-21 20:15:20+00"
   	}
   }
   ```
   
   


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org

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



[GitHub] [trafficcontrol] rawlinp closed issue #6367: PUT /user/current doesn't work

Posted by GitBox <gi...@apache.org>.
rawlinp closed issue #6367:
URL: https://github.com/apache/trafficcontrol/issues/6367


   


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org

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



[GitHub] [trafficcontrol] mitchell852 commented on issue #6367: PUT /user/current doesn't work

Posted by GitBox <gi...@apache.org>.
mitchell852 commented on issue #6367:
URL: https://github.com/apache/trafficcontrol/issues/6367#issuecomment-983834958


   @ocket8888 - are all versions broken? 3.1? 4.0?


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org

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



[GitHub] [trafficcontrol] ocket8888 commented on issue #6367: PUT /user/current doesn't work

Posted by GitBox <gi...@apache.org>.
ocket8888 commented on issue #6367:
URL: https://github.com/apache/trafficcontrol/issues/6367#issuecomment-983854032


   Yes. All versions


-- 
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.

To unsubscribe, e-mail: issues-unsubscribe@trafficcontrol.apache.org

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