You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by "Marios Andreou (JIRA)" <ji...@apache.org> on 2012/06/14 11:43:42 UTC
[jira] [Updated] (DTACLOUD-235) GET -X /api/metrics?format=xml (or
json) gives 'undefined local variable or method' error
[ https://issues.apache.org/jira/browse/DTACLOUD-235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marios Andreou updated DTACLOUD-235:
------------------------------------
Attachment: 0001-Adds-XML-for-metrics-resolves-JIRA-DTACLOUD_235.patch
attached patch should resolve this - please test
> GET -X /api/metrics?format=xml (or json) gives 'undefined local variable or method' error
> -----------------------------------------------------------------------------------------
>
> Key: DTACLOUD-235
> URL: https://issues.apache.org/jira/browse/DTACLOUD-235
> Project: DeltaCloud
> Issue Type: Bug
> Components: Server
> Environment: deltacloud commit version: 138adab3396ea95a41c8320058dd78bbac446b08
> Reporter: Ronelle Landy
> Assignee: Marios Andreou
> Attachments: 0001-Adds-XML-for-metrics-resolves-JIRA-DTACLOUD_235.patch
>
>
> >> curl -X GET --user "un:pw" "http://qe-blade-02.idm.lab.bos.redhat.com:3006/api/metrics?format=xml"
> (long trace goes off console) end of trace below:
> ...........
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/backends/base.rb:61:in `start'
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/server.rb:159:in `start'
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/controllers/controller.rb:86:in `start'
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/runner.rb:185:in `send'
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/runner.rb:185:in `run_command'
> /usr/lib/ruby/gems/1.8/gems/thin-1.3.1/lib/thin/runner.rb:151:in `run!'
> /usr/share/deltacloud-core/bin/deltacloudd:239
> /usr/bin/deltacloudd:5:in `load'
> /usr/bin/deltacloudd:5]]></backtrace>
> <request>
> <param name='format'>xml</param>
> <param name='splat'></param>
> <param name='captures'>undefined local variable or method `h' for #<Deltacloud::Collections::Metrics:0x7f3b7afc7198></param>
> </request>
> </error>
> Using format=json:
> XML Parsing Error: not well-formed
> Location: http://qe-blade-02.idm.lab.bos.redhat.com:3006/api/metrics?format=json
> Line Number 547, Column 84: <param name='captures'>undefined local variable or method `h' for #<Deltacloud::Collections::Metrics:0x7f3b7af7c2d8></param>
> -----------------------------------------------------------------------------------^
--
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