Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1332805

Summary: The problematic editing of kickstart profile - custom options
Product: Red Hat Satellite 5 Reporter: Martin Korbel <mkorbel>
Component: WebUIAssignee: Jiří Dostál <jdostal>
Status: CLOSED CURRENTRELEASE QA Contact: Pavel Studeník <pstudeni>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 570CC: adujicek, gorkhaan, jdostal, pstudeni, tlestach
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: spacewalk-java-2.5.14-56-sat Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-21 12:19:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1358815    

Description Martin Korbel 2016-05-04 06:48:54 UTC
Description of problem:
The problem is that, when we add a new line into Custom option in kickstart profile > Advanced Options and some text is already there, both texts are mixed up. After press button "Update Kickstart", this line is put on top of existing text and missing there new line.


Version-Release number of selected component (if applicable):
Sat5.7
SW Nightly

How reproducible:
100%

Steps to Reproduce:
1. open some kickstart profile > Advanced Options
2. add some text (one line) into Custom option (in my case "XXX") and press Update Kickstart
3. add next text on the new line into Custom option (in my case "YYY") and press Update Kickstart, again.


Actual results:
YYYXXX

Expected results:
XXX
YYY

Additional info:

Comment 1 Jiří Dostál 2016-08-04 09:53:31 UTC
spacewalk.git
6dd6c0455df64831fdd249f820284209615a8e94
0760afdd257f242dccf64de9d341bf0a6d1d02d0
c48634f51b4b2d18f033794e7dabf30693fa1662

Comment 3 Pavel Studeník 2017-01-03 12:14:03 UTC
Verified with spacewalk-java-2.5.14-36.el6sat.noarch

Comment 4 Gorkhaan 2017-01-17 14:05:24 UTC
Having the same issue on Spacewalk 2.6.

It shuffles it like this:
# Sending this form data as "Custom Options:"
1line
2line
3line
4line
5line
6line
aline
bline
cline
dline
eline
fline

# End results:
3line
eline
fline
6line
aline
4line
dline
cline
5line
1line
2line
bline

# What I actually want do have in there:
%addon com_redhat_kdump --disable
%end
%addon org_fedora_oscap
content-type = scap-security-guide
profile = pci-dss
%end

# Result:
%addon com_redhat_kdump --disable
%addon org_fedora_oscap
profile = pci-dss
%end
%end
content-type = scap-security-guide


# Spacewalk Server
[root@lxspacewalk01 satellite]# rpm -qa | grep -i spacewalk
spacewalk-backend-config-files-common-2.6.74-1.el7.noarch
spacewalk-backend-iss-export-2.6.74-1.el7.noarch
spacewalk-backend-package-push-server-2.6.74-1.el7.noarch
spacewalk-java-lib-2.6.48-1.el7.noarch
spacewalk-backend-app-2.6.74-1.el7.noarch
spacewalk-branding-2.5.3-1.el7.noarch
spacewalk-client-repo-2.6-0.el7.noarch
spacewalk-setup-2.6.2-1.el7.noarch
spacewalk-java-2.6.48-1.el7.noarch
rhn-org-httpd-ssl-key-pair-lxspacewalk01.bauer-uk-1.0-4.noarch
spacewalk-doc-indexes-2.5.2-1.el7.noarch
spacewalk-backend-server-2.6.74-1.el7.noarch
spacewalk-backend-iss-2.6.74-1.el7.noarch
spacewalk-backend-xmlrpc-2.6.74-1.el7.noarch
spacewalk-base-minimal-2.6.6-1.el7.noarch
spacewalk-java-config-2.6.48-1.el7.noarch
spacewalk-certs-tools-2.5.3-1.el7.noarch
spacewalk-base-2.6.6-1.el7.noarch
spacewalk-selinux-2.3.2-1.el7.noarch
spacewalk-common-2.6.1-1.el7.noarch
spacewalk-backend-sql-2.6.74-1.el7.noarch
spacewalk-backend-config-files-tool-2.6.74-1.el7.noarch
spacewalk-base-minimal-config-2.6.6-1.el7.noarch
spacewalk-jpp-workaround-2.3.5-1.el7.noarch
spacewalk-java-postgresql-2.6.48-1.el7.noarch
spacewalk-taskomatic-2.6.48-1.el7.noarch
spacewalk-admin-2.6.1-1.el7.noarch
spacewalk-setup-jabberd-2.3.2-1.el7.noarch
spacewalk-backend-sql-postgresql-2.6.74-1.el7.noarch
spacewalk-backend-2.6.74-1.el7.noarch
spacewalk-backend-xml-export-libs-2.6.74-1.el7.noarch
spacewalk-backend-config-files-2.6.74-1.el7.noarch
spacewalk-backend-applet-2.6.74-1.el7.noarch
spacewalk-search-2.6.1-1.el7.noarch
spacewalk-html-2.6.6-1.el7.noarch
spacewalk-repo-2.6-0.el7.noarch
spacewalk-backend-usix-2.6.74-1.el7.noarch
spacewalk-backend-libs-2.6.74-1.el7.noarch
spacewalk-backend-tools-2.6.74-1.el7.noarch
spacewalk-schema-2.6.16-1.el7.noarch
spacewalk-config-2.6.5-1.el7.noarch
spacewalk-setup-postgresql-2.6.2-1.el7.noarch

# Using Chrome or Firefox doesn't matter. Same issue.

Comment 6 Jiří Dostál 2017-01-25 13:42:12 UTC
Fixed in spacewalk
2b17ebf2f4959021adebf47382a5710143e25b1c

Comment 10 Pavel Studeník 2017-05-17 09:58:18 UTC
Verified with spacewalk-java-2.5.14-84.el6sat.noarch