Bug 1040878 - Installator creates duplicate profiles in file settings.xml
Summary: Installator creates duplicate profiles in file settings.xml
Keywords:
Status: VERIFIED
Alias: None
Product: JBoss Fuse Service Works 6
Classification: JBoss
Component: Installer
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: CR1
: ---
Assignee: Miroslav Sochurek
QA Contact: Tomas Sykora
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-12 09:20 UTC by Martin Basovník
Modified: 2019-02-22 22:36 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Enhancement


Attachments (Terms of Use)

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.


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