Bug 1040878

Summary: Installator creates duplicate profiles in file settings.xml
Product: [JBoss] JBoss Fuse Service Works 6 Reporter: Martin Basovník <mbasovni>
Component: InstallerAssignee: Miroslav Sochurek <msochure>
Status: VERIFIED --- QA Contact: Tomas Sykora <tsykora>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: oskutka, psrna, soa-p-jira, tsykora
Target Milestone: CR1   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Enhancement
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Martin Basovník 2013-12-12 09:20:40 UTC
Description of problem:
Installator creates duplicit profiles in file settings.xml

Version-Release number of selected component (if applicable):


How reproducible:
100%

Steps to Reproduce:
1. Install FSW6 ER7-2 several times with specified path to your settings.xml.
2. Look inside the file settings.xml

Actual results:
Unnecessary profiles
...
  <activeProfiles>
      ...
    <activeProfile>jboss-ip-repository-1386661061725</activeProfile>
    <activeProfile>redhat-techpreview-all-repository1386661061725</activeProfile>
    <activeProfile>jboss-ip-repository-1386664083773</activeProfile>
    <activeProfile>redhat-techpreview-all-repository-1386664083773</activeProfile>
    <activeProfile>jboss-ip-repository-1386835217322</activeProfile>
    <activeProfile>redhat-techpreview-all-repository-1386835217322</activeProfile>
  </activeProfiles>
...

Expected results:
Only one profile for each repository is expected. Repositories should be compared according to URLs.

Additional info:

Comment 1 Thomas Hauser 2013-12-13 17:12:15 UTC
Comparing repositories according to URL as well seems like a good improvement. Note that the current behavior doesn't result in errors. I am re-categorizing this BZ as an Enhancement because there is no functional problem with the current methodology.

Comment 2 Miles Tjandrawidjaja 2014-01-08 21:22:30 UTC
Updated to compare profiles according to URL.

http://git.app.eng.bos.redhat.com/installer-commons.git/commit/?h=6.1.1.ip&id=2d6e11f4bbd004fe2fe29c41521604ba460736c1

Comment 3 Pavol Srna 2014-01-15 13:53:21 UTC
Verified in CR1.