deltacloud-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ronelle Landy (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DTACLOUD-160) Creating instance with name longer than 50 chars throws: ClientError: The request could not be understood by the server due to malformed syntax
Date Mon, 19 Mar 2012 21:29:38 GMT

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

Ronelle Landy commented on DTACLOUD-160:
----------------------------------------

The text of the error is now correct but the error code is a 400.

  1) temp test should allow creation of new instances with user data
     Failure/Error: instance = client.create_instance( '5a164dc4-780e-4f25-99d6-abad3b2eec74',
     DeltaCloud::API::BackendError:
       400 : Parameter name must be 50 characters or less
     # ./specs/temp_spec.rb:33
     # ./specs/temp_spec.rb:32

version tested:

925d0ed656ee24f5d4c8d2367b5aa45a8597bdfd	not-for-merge	branch 'master' of https://git-wip-us.apache.org/repos/asf/deltacloud



                
> Creating instance with name longer than 50 chars throws: ClientError: The request could
not be understood by the server due to malformed syntax
> -----------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: DTACLOUD-160
>                 URL: https://issues.apache.org/jira/browse/DTACLOUD-160
>             Project: DeltaCloud
>          Issue Type: Bug
>          Components: Client (Ruby)
>         Environment: Fedora 16
> Deltacloud git commit; 61ac9fef965dd7d1af7c213357ea7d66630d88d7 R	clone: from https://git-wip-us.apache.org/repos/asf/deltacloud.git
>            Reporter: Ronelle Landy
>            Assignee: David Lutterkort
>
> Using deltacloud ruby client, create an instance with a name longer than 50 chars:
>   DeltaCloud.new( API_NAME, API_PASSWORD, API_URL ) do |client|
>       instance = client.create_instance( '359123e1-d343-40be-ae1d-df180cdf65ef',
>                                          :hardware_profile=>'SERVER',
>                                          :name=>"rlandyLaunchClientWithNameLongerThanSixtyCharactersTotestJiraOut")
> Client throws:
>   1) launch test should allow creation of new instances
>      Failure/Error: instance = client.create_instance( '359123e1-d343-40be-ae1d-df180cdf65ef',
>      DeltaCloud::HTTPError::BadRequest:
>        400
>        
>        DeltaCloud::HTTPError::ClientError: The request could not be understood by the
server due to malformed syntax.
>      # ./lib/errors.rb:77:in `on'
>      # ./lib/errors.rb:105:in `client_error'
>      # ./lib/errors.rb:72:in `instance_eval'
>      # ./lib/errors.rb:72:in `initialize'
>      # ./lib/errors.rb:103:in `new'
>      # ./lib/errors.rb:103:in `client_error'
>      # ./lib/deltacloud.rb:359:in `response_error'
>      # ./lib/deltacloud.rb:391:in `request'
>      # ./lib/deltacloud.rb:390:in `send'
>      # ./lib/deltacloud.rb:390:in `request'
>      # ./lib/deltacloud.rb:316:in `method_missing'
>      # ./specs/launchclient_spec.rb:27
>      # ./lib/deltacloud.rb:82:in `initialize'
>      # ./lib/deltacloud.rb:41:in `new'
>      # ./lib/deltacloud.rb:41:in `new'
>      # ./specs/launchclient_spec.rb:26
> Finished in 0.07303 seconds
> 1 example, 1 failure
> Failed examples:
> rspec ./specs/launchclient_spec.rb:25 # launch test should allow creation of new instances
> rake aborted!
> Looking at the server logs, "RuntimeError:Parameter name must be 50 characters or less"
... however this message is not passed to the client

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message