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

        

Reply via email to