Created attachment 1515027 [details] duplicate content Description of problem: Version-Release number of selected component (if applicable): Version 5.10.0.29.20181211195209_fd990a9 How reproducible: 100% Steps to Reproduce: 1.Add a new Orchestration Template(any Heat,Azure,VNF,vApp) 2.Again Add a another new Orchestration Template(Heat,Azure,VNF,vApp) with duplicate content[1] Actual results: duplicated content error validation flash message is not proper while adding Orchestration Template with same content. error message -> Error during 'Orchestration Template creation': Validation failed: ManageIQ::Providers::Azure::CloudManager::OrchestrationTemplate: Md5 of content already exists (content must be unique) Expected results: validation flash message should be like this => "Error during 'Orchestration Template creation': Validation failed: Md5 of content already exists (content must be unique)" Additional info: Also It show flash when we add Orchestration Template(Heat,Azure,VNF,vApp) with same name.
Created attachment 1515028 [details] name blank error
Hi Lucy, Could you look into this issue? The UI code https://github.com/ManageIQ/manageiq-ui-classic/blob/master/app/controllers/catalog_controller.rb#L1160 Calls this method: https://github.com/ManageIQ/manageiq/blob/master/app/models/orchestration_template.rb#L156 Let me know if you have any questions. Thanks, Tina
error message -> Error during 'Orchestration Template creation': Validation failed: ManageIQ::Providers::Azure::CloudManager::OrchestrationTemplate: Md5 of content already exists (content must be unique) The above error message contains 3 parts. 1. Error during 'Orchestration Template creation': This comes from UI. 2. Validation failed: ManageIQ::Providers::Azure::CloudManager::OrchestrationTemplate: Md5 This comes from Rails which tells the object class and attribute that fails the validation. 3. of content already exists (content must be unique) This comes from backend model. We can't change the error message from Rails. This BZ can be closed.