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/01/15 22:04:51 UTC

[GitHub] [trafficcontrol] mitchell852 opened a new issue #5445: PUT /users/:id sets tm_user.registration_sent (date) to null

mitchell852 opened a new issue #5445:
URL: https://github.com/apache/trafficcontrol/issues/5445


   ## I'm submitting a ...
   -  bug report
   
   ## Traffic Control components affected ...
   -  Traffic Ops
   
   ## Current behavior:
   PUT /users/:id sets tm_user.registration_sent (date) to null
   
   ## Expected behavior:
   PUT /users/:id should NOT touch tm_user.registration_sent (date) in any way. if it has a value, leave it. if it has no value, leave it. 
   
   tm_user.registration_sent is set if a user is created via `POST users/register` and should never be nulled once it is set.
   
   ## Minimal reproduction of the problem with instructions:
   - Create a user via `POST users/register` and provide email, tenant and role
   - check the database for the new user. see that registration_sent is set to current date/time
   - note the id of the new user
   - update the new user via `PUT /user/:id` and notice that registration_sent is set to null. this is wrong.
   
   <!--
   Licensed to the Apache Software Foundation (ASF) under one
   or more contributor license agreements.  See the NOTICE file
   distributed with this work for additional information
   regarding copyright ownership.  The ASF licenses this file
   to you under the Apache License, Version 2.0 (the
   "License"); you may not use this file except in compliance
   with the License.  You may obtain a copy of the License at
   
       https://apache.org/licenses/LICENSE-2.0
   
   Unless required by applicable law or agreed to in writing,
   software distributed under the License is distributed on an
   "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
   KIND, either express or implied.  See the License for the
   specific language governing permissions and limitations
   under the License.
   -->
   


----------------------------------------------------------------
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] [trafficcontrol] rimashah25 commented on issue #5445: PUT /users/:id sets tm_user.registration_sent (date) to null

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


   I can take this one.


----------------------------------------------------------------
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] [trafficcontrol] mitchell852 closed issue #5445: PUT /users/:id sets tm_user.registration_sent (date) to null

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


   


----------------------------------------------------------------
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] [trafficcontrol] mitchell852 closed issue #5445: PUT /users/:id sets tm_user.registration_sent (date) to null

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


   


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