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/02 20:31:04 UTC
[jira] [Commented] (TC-260) TO crash on missing regex on creating
delivery service in UI
[ https://issues.apache.org/jira/browse/TC-260?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15993677#comment-15993677 ]
ASF GitHub Bot commented on TC-260:
-----------------------------------
GitHub user dangogh opened a pull request:
https://github.com/apache/incubator-trafficcontrol/pull/539
[TC-260] stash cdn and profile lists for DeliveryService#create
`cdns` and `profiles` were missing from the stash -- that's what caused the crash
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/dangogh/incubator-trafficcontrol tc-260
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/incubator-trafficcontrol/pull/539.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 #539
----
commit bcc65d5fdb03963ce1e1072d47b37601112edf05
Author: Dan Kirkwood <da...@gmail.com>
Date: 2017-05-02T20:28:26Z
stash cdn and profile lists for DeliveryService#create
----
> TO crash on missing regex on creating delivery service in UI
> ------------------------------------------------------------
>
> Key: TC-260
> URL: https://issues.apache.org/jira/browse/TC-260
> Project: Traffic Control
> Issue Type: Bug
> Components: Traffic Ops
> Affects Versions: 2.1.0
> Environment: development
> Reporter: Dan Kirkwood
> Assignee: Dan Kirkwood
> Fix For: 2.1.0
>
>
> tried creating a delivery service, but forgot to put in a regex. Looks like it tried to give an error message popup, but showed this fatal error and stack trace instead:
> Traffic Ops fatal error occurred while processing your request.
> Error at line 28 ($morbo->run($app);)
> Please supply a host regular expression at
> .../app/local/lib/perl5/Mojolicious/Controller.pm line 37
> Mojolicious::Controller::AUTOLOAD('UI::DeliveryService=HASH(0x7e4fd78)',
> 'HOST_REGEXP', '', 'cdn1.kabletown.net', 1, undef)
> called at.../app/lib/UI/DeliveryService.pm line 394
>
> UI::DeliveryService::check_deliveryservice_input('UI::DeliveryService=HASH(0x7e4fd78)', 1)
> called at.../app/lib/UI/DeliveryService.pm line 1020
> UI::DeliveryService::create('UI::DeliveryService=HASH(0x7e4fd78)')
> called at.../app/local/lib/perl5/Mojolicious.pm line 126
> Mojolicious::__ANON__(undef, 'UI::DeliveryService=HASH(0x7e4fd78)',
> 'CODE(0x688fd18)', 1)
> called at.../app/local/lib/perl5/Mojolicious/Plugins.pm line 20
> Mojolicious::Plugins::__ANON__()
> called at.../app/local/lib/perl5/Mojolicious/Plugins.pm line 23 Mojolicious::Plugins::emit_chain('Mojolicious::Plugins=HASH(0x23d68a8)', 'around_action', 'UI::DeliveryService=HASH(0x7e4fd78)', 'CODE(0x688fd18)', 1)
> called at.../app/local/lib/perl5/Mojolicious/Routes.pm line 106 Mojolicious::Routes::_action('TrafficOps=HASH(0x2a09d78)', 'UI::DeliveryService=HASH(0x7e4fd78)', 'CODE(0x688fd18)', 1)
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)