apache / trafficcontrol

Apache Traffic Control is an Open Source implementation of a Content Delivery Network
https://trafficcontrol.apache.org/
Apache License 2.0
1.03k stars 339 forks source link

Tenancy Bug - Getting 500 Response for Moving a Tenant and Renaming a Tenant #1673

Closed ryandurfey closed 6 years ago

ryandurfey commented 6 years ago

I am working within the new Traffic Portal and attempting to rename a tenant to a new name. Also trying to move a tenant down to below a lower tenant. Both updates return a 500 Internal Server Error.

Reproduce:

  1. Open a tenant, change the name of the tenant, click update
  2. Open a tenant, change the parent tenant, click update @nir-sopher @mitchell852
mitchell852 commented 6 years ago

@nir-sopher - any ideas? this appears to be the error

[2017-12-18 12:33:17,781] [ERROR] Check tenants relations - tenant Schema::Result::Tenant=HASH(0x7fc6ab796658) does not exists Use of inherited AUTOLOAD for non-method API::Tenant::alert() is deprecated at /code/src/github.com/apache/incubator-trafficcontrol/traffic_ops/app/lib/API/Tenant.pm line 134. [2017-12-18 12:33:17,782] [ERROR] Undefined subroutine &API::Tenant::alert called at /code/src/github.com/apache/incubator-trafficcontrol/traffic_ops/app/local/lib/perl5/Mojolicious.pm line 126.

mitchell852 commented 6 years ago

This error is not occurring if I'm logged in as admin/root but if i'm logged in as admin/something-less-than-root, i get this error...