Bug 1359813 - METHOD:: does not accept a full path to a method
Summary: METHOD:: does not accept a full path to a method
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat CloudForms Management Engine
Classification: Red Hat
Component: Automate
Version: 5.6.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: GA
: 5.7.0
Assignee: Tina Fitzgerald
QA Contact: Milan Falešník
URL:
Whiteboard: automate
Depends On:
Blocks: 1370568
TreeView+ depends on / blocked
 
Reported: 2016-07-25 13:39 UTC by Fabien Dupont
Modified: 2017-02-07 14:47 UTC (History)
7 users (show)

Fixed In Version: 5.7.0.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1370568 (view as bug list)
Environment:
Last Closed: 2017-01-11 19:57:01 UTC
Category: ---
Cloudforms Team: ---
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Fabien Dupont 2016-07-25 13:39:14 UTC
Description of problem:


How reproducible: Always


Steps to Reproduce:

When trying to call a method through a relationship using the METHOD:: statement and a full path to the method, eg. METHOD::/NameSpace/Class/Method, it raises an exception:


Actual results:
invalid method calling syntax: [METHOD::/NameSpace/Class/Method


Expected results:
Extend the full path and call the method.

Additional info:

Comment 3 CFME Bot 2016-07-28 15:35:49 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/af97109fda776aeb324ef895ec661702263249f9

commit af97109fda776aeb324ef895ec661702263249f9
Author:     Tina Fitzgerald <tfitzger>
AuthorDate: Wed Jul 27 11:29:07 2016 -0400
Commit:     Tina Fitzgerald <tfitzger>
CommitDate: Wed Jul 27 12:51:16 2016 -0400

    Fixed issue for automate class methods that addresses issue using
    METHOD:: syntax and on_entry, on_exit and on_error methods.
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1359813

 lib/miq_automation_engine/engine/miq_ae_object.rb  |  5 ++-
 .../miq_ae_state_machine_spec.rb                   | 36 ++++++++++++++++++++++
 2 files changed, 38 insertions(+), 3 deletions(-)

Comment 6 Milan Falešník 2016-09-16 11:20:13 UTC
Verified in 5.7.0.0

METHOD::/ns/Class.methodname works in the states
/ns/Class.methodname works in the on_*


Note You need to log in before you can comment on or make changes to this bug.