[
https://issues.apache.org/jira/browse/DTACLOUD-243?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dies Koper updated DTACLOUD-243:
--------------------------------
Attachment: 0001-FGCP-prevent-error-when-listing-firewall-with-no-rul.patch
patch that specifies an empty array ([]) for the FW rules to prevent an
'undefined method' error.
> FGCP: error when listing FW with no rules
> -----------------------------------------
>
> Key: DTACLOUD-243
> URL: https://issues.apache.org/jira/browse/DTACLOUD-243
> Project: DeltaCloud
> Issue Type: Bug
> Components: Server
> Environment: current source trunk (eq. to DC 1.0.0?)
> Reporter: Dies Koper
> Priority: Minor
> Attachments:
> 0001-FGCP-prevent-error-when-listing-firewall-with-no-rul.patch
>
>
> http://localhost:3001/api/firewalls?format=xml
> gives
> NoMethodError - undefined method `each' for nil:NilClass:
>
> d:/sources/OSS/cloud/deltacloud/server/lib/deltacloud/./../../views/firewalls/index.xml.haml:19:in
> `evaluate_source'
>
> d:/sources/OSS/cloud/deltacloud/server/lib/deltacloud/./../../views/firewalls/index.xml.haml:3:in
> `each'
--
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