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 BDFFEE918 for ; Tue, 22 Jan 2013 13:34:20 +0000 (UTC) Received: (qmail 28845 invoked by uid 500); 22 Jan 2013 13:34:20 -0000 Delivered-To: apmail-deltacloud-dev-archive@deltacloud.apache.org Received: (qmail 28689 invoked by uid 500); 22 Jan 2013 13:34:20 -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 27845 invoked by uid 99); 22 Jan 2013 13:34:14 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 22 Jan 2013 13:34:14 +0000 Date: Tue, 22 Jan 2013 13:34:13 +0000 (UTC) From: "Michal Fojtik (JIRA)" To: dev@deltacloud.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (DTACLOUD-432) Using $select=disks&$expand=disks return 500 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Michal Fojtik created DTACLOUD-432: -------------------------------------- Summary: Using $select=3Ddisks&$expand=3Ddisks return 500 Key: DTACLOUD-432 URL: https://issues.apache.org/jira/browse/DTACLOUD-432 Project: DeltaCloud Issue Type: Bug Reporter: Michal Fojtik When using this URL: http://localhost:3001/cimi/machines?$expand=3Ddisks&$select=3Ddisks I expect that only expanded disks subcollection will appear. However I get = this: error status=3D"500" url=3D"/cimi/machines"> backend_error ]]> 500 [ Abbreviated trace pass fulltrace=3D1 as query param to see everything $ap= p =3D /home/mfojtik/code/core/server/lib ] $app/cimi/models/collection.rb:5= 6:in `[]' $app/cimi/models/collection.rb:27:in `initialize' $app/cimi/model= s/schema.rb:266:in `new' $app/cimi/models/schema.rb:266:in `convert' $app/c= imi/models/schema.rb:288:in `convert' $app/cimi/models/base.rb:184:in `init= ialize' ... $app/cimi/models/base.rb:183:in `each' $app/cimi/models/base.rb= :183:in `inject' $app/cimi/models/base.rb:183:in `initialize' $app/cimi/mod= els/base.rb:288:in `new' $app/cimi/models/base.rb:288:in `filter_attributes= ' $app/cimi/models/collection.rb:67:in `filter_attributes' $app/cimi/models= /collection.rb:66:in `map' $app/cimi/models/collection.rb:66:in `filter_att= ributes' $app/cimi/models/base.rb:252:in `filter_by' $app/cimi/collections/= machines.rb:27 ... $app/sinatra/rack_accept.rb:164:in `call' ... $app/sinat= ra/rack_accept.rb:164:in `call' ... $app/sinatra/rack_accept.rb:164:in `cal= l' ... $app/sinatra/rack_accept.rb:164:in `call' ... $app/sinatra/rack_acce= pt.rb:164:in `call' ... $app/sinatra/rack_accept.rb:164:in `call' ... $app/= sinatra/rack_accept.rb:164:in `call' ... $app/sinatra/rack_accept.rb:164:in= `call' ... $app/sinatra/rack_accept.rb:164:in `call' ... $app/sinatra/rack= _accept.rb:164:in `call' ... $app/sinatra/rack_accept.rb:164:in `call' ... = $app/sinatra/rack_accept.rb:164:in `call' ... $app/sinatra/rack_accept.rb:1= 64:in `call' ... $app/sinatra/rack_driver_select.rb:45:in `call' $app/sinat= ra/rack_matrix_params.rb:104:in `call' $app/sinatra/rack_etag.rb:41:in `cal= l' $app/sinatra/rack_date.rb:31:in `call' $app/sinatra/rack_logger.rb:76:in= `call' $app/sinatra/rack_accept.rb:164:in `call' ... $app/sinatra/rack_mat= rix_params.rb:104:in `call' ... -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira