[ 
https://issues.apache.org/jira/browse/TC-282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16008835#comment-16008835
 ] 

Dan Kirkwood commented on TC-282:
---------------------------------

issue is that this server has a profile which has no cdn associated with it.  
The `$profile->cdn->id` throws this error.

We either need to trap that condition, treating a null cdn as "ALL" or get add 
a constraint to disallow that in the db.

> error updating server
> ---------------------
>
>                 Key: TC-282
>                 URL: https://issues.apache.org/jira/browse/TC-282
>             Project: Traffic Control
>          Issue Type: Bug
>          Components: Traffic Ops
>    Affects Versions: 2.1.0
>            Reporter: Dan Kirkwood
>             Fix For: 2.1.0
>
>
> updating a server in the UI with new IP address info.    On SAVE,   I get 
> this error:
> ```
> Traffic Ops fatal error occurred while processing your request. 
> Error at line 452 (   if ( $profile->cdn->id != $cdn->id ) {) 
> Can't call method "id" on an undefined value at 
> /opt/traffic_ops/app/lib/UI/Server.pm line 452.
> ```



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to