DescriptionNiyaz Akhtar Ansari
2018-12-17 09:20:02 UTC
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.
Comment 2Niyaz Akhtar Ansari
2018-12-17 09:23:06 UTC
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.
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.