Return-Path: X-Original-To: apmail-deltacloud-dev-archive@www.apache.org Delivered-To: apmail-deltacloud-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id AC564E781 for ; Wed, 20 Feb 2013 17:29:14 +0000 (UTC) Received: (qmail 6804 invoked by uid 500); 20 Feb 2013 17:29:13 -0000 Delivered-To: apmail-deltacloud-dev-archive@deltacloud.apache.org Received: (qmail 6789 invoked by uid 500); 20 Feb 2013 17:29:13 -0000 Mailing-List: contact dev-help@deltacloud.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@deltacloud.apache.org Delivered-To: mailing list dev@deltacloud.apache.org Received: (qmail 6751 invoked by uid 99); 20 Feb 2013 17:29:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Feb 2013 17:29:13 +0000 Date: Wed, 20 Feb 2013 17:29:13 +0000 (UTC) From: "Marios Andreou (JIRA)" To: dev@deltacloud.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DTACLOUD-448) 500 Error when creating a machine template with no properties MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DTACLOUD-448?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marios Andreou updated DTACLOUD-448: ------------------------------------ Attachment: 0001-CIMI-minor-tidy-up-nits-in-parsing-of-database-model.patch should work now - please test. original patch was pushed, but addition of 'realm' attribute messed up machine-template again. i include some minor optimisations here since we're revisiting. > 500 Error when creating a machine template with no properties > -------------------------------------------------------------- > > Key: DTACLOUD-448 > URL: https://issues.apache.org/jira/browse/DTACLOUD-448 > Project: DeltaCloud > Issue Type: Bug > Components: Server > Reporter: Martha Chumo > Assignee: Marios Andreou > Attachments: 0001-CIMI-bug-create-CIMI-db-resource-with-no-properties-.patch, 0001-CIMI-minor-tidy-up-nits-in-parsing-of-database-model.patch > > > Here is part of the error trace--> > 127.0.0.1 - - [31/Jan/2013 13:09:06] "POST /cimi/machine_templates HTTP/1.1" 500 1818 1.1468 > E, [2013-01-31T13:09:07.481446 #7345] ERROR -- 500: [NoMethodError] undefined method `inject' for nil:NilClass > /home/martha/.rvm/gems/ruby-1.9.3-p194/gems/deltacloud-core-1.1.0/lib/cimi/models/machine_template.rb:74:in `create_from_xml' > /home/martha/.rvm/gems/ruby-1.9.3-p194/gems/deltacloud-core-1.1.0/lib/cimi/collections/machine_templates.rb:51:in `block (3 levels) in ' > /home/martha/.rvm/gems/ruby-1.9.3-p194/gems/sinatra-rabbit-1.1.3/lib/sinatra/rabbit/base.rb:396:in `instance_eval' > /home/martha/.rvm/gems/ruby-1.9.3-p194/gems/sinatra-rabbit-1.1.3/lib/sinatra/rabbit/base.rb:396:in `block in control' -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira