Bug 1524082 - Replacing with an empty string/use of --prompt fails
Summary: Replacing with an empty string/use of --prompt fails
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: rpl
Version: 27
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Tim Jackson
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1564142 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-12-10 01:51 UTC by Harald Reindl
Modified: 2018-06-03 19:16 UTC (History)
2 users (show)

Fixed In Version: rpl-1.5.7-6.fc28
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-06-03 19:07:53 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github https://github.com/kcoyner rpl issues 5 0 None None None 2018-05-10 21:54:13 UTC

Description Harald Reindl 2017-12-10 01:51:40 UTC
on F26 you can't remove something from a file by replace it with empty string

[root@buildserver:~]$ rpl "#" "" /usr/lib/systemd/system/trafficserver.service
Really DELETE all occurences of # (case sensitive)? (Y/[N]) Traceback (most recent call last):
  File "/usr/bin/rpl", line 314, in <module>
    main()
  File "/usr/bin/rpl", line 172, in main
    line = raw_input()
NameError: name 'raw_input' is not defined

Comment 1 Harald Reindl 2018-03-13 18:11:53 UTC
PING - still an issue in F27

Comment 2 Harald Reindl 2018-04-15 19:27:32 UTC
PING - it is *not* funny when you prepared 600 apache vhosts with "#enforcehttps" and are equired to donwload them for replace in a gui editor or creep around in "nano" and do it manually (no, i don't use emaces or vi)

 #enforcehttps<IfModule mod_rewrite.c>
 #enforcehttps RewriteEngine on
 #enforcehttps RewriteCond %{CONN_REMOTE_ADDR} !^192\.168\.196\.100
 #enforcehttps RewriteCond %{HTTPS} off
 #enforcehttps RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
 #enforcehttps</IfModule>
 #enforcehttps<IfModule mod_headers.c>
 #enforcehttps Header always set "Strict-Transport-Security" "max-age=31536000"
 #enforcehttps</IfModule>

the idea here is type "rpl '#enforcehttps' '' vconst.conf" followed by "systemctl reload httpd"

Comment 3 Fedora End Of Life 2018-05-03 07:56:19 UTC
This message is a reminder that Fedora 26 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 26. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '26'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 26 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 4 Harald Reindl 2018-05-03 08:12:25 UTC
don't get maintainbers mails about bugreports from the fedora infrastructure?

Comment 5 Tim Jackson 2018-05-10 22:15:50 UTC
*** Bug 1564142 has been marked as a duplicate of this bug. ***

Comment 6 Tim Jackson 2018-05-10 22:16:41 UTC
Workaround pending an updated RPM: change raw_input() to input() around line 172 of /usr/bin/rpl.

Comment 7 Harald Reindl 2018-05-14 10:53:38 UTC
https://koji.fedoraproject.org/koji/buildinfo?buildID=1081331

this is only for F29 while the bug hurts in F26/F27

at least F27 needs a urgent update because otherwise i need to write my own "rpl" in PHP within the next few days

Comment 8 Fedora Update System 2018-05-15 21:19:19 UTC
rpl-1.5.7-6.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-8f54a76713

Comment 9 Fedora Update System 2018-05-15 21:28:40 UTC
rpl-1.5.7-6.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-c57096afea

Comment 10 Fedora Update System 2018-05-16 01:33:48 UTC
rpl-1.5.7-6.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-c57096afea

Comment 11 Fedora Update System 2018-05-16 03:28:06 UTC
rpl-1.5.7-6.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-8f54a76713

Comment 12 Fedora Update System 2018-06-03 19:07:53 UTC
rpl-1.5.7-6.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.

Comment 13 Fedora Update System 2018-06-03 19:16:41 UTC
rpl-1.5.7-6.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.


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