Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 112727 - Filenames in manifest can not contain '#'
Summary: Filenames in manifest can not contain '#'
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Fedora Packaging Toolset Team
QA Contact:
URL: http://distro2.conectiva.com.br/piper...
Whiteboard:
: 130306 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-12-29 23:45 UTC by Enrico Scholz
Modified: 2019-11-28 01:10 UTC (History)
2 users (show)

Fixed In Version: rpm-4.15.1-1.fc31
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-11-28 01:10:27 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
allows escaped characters in manifest (3.03 KB, patch)
2004-01-01 21:23 UTC, Enrico Scholz
no flags Details | Diff
testsuite (692 bytes, text/plain)
2004-01-01 21:25 UTC, Enrico Scholz
no flags Details

Description Enrico Scholz 2003-12-29 23:45:09 UTC
Description of problem:

It is impossible to use manifests with files whose names are
containing '#'. Such manifests/files are generated e.g. by recent
'apt' versions, see 

http://distro2.conectiva.com.br/pipermail/apt-rpm/2003-December/002125.html

for complete report.


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

rpm-4.2.1-0.30.1.1


How reproducible:

100%


Steps to Reproduce:
1. echo -e '/tmp/foo#.i386.rpm\n'{,,,,} >/tmp/x.list
   [crude shortcut, manifest files seem to need >=5 lines...]
2. rpm -Uvh --test /tmp/x.list 



Actual results:
error: open of /tmp/foo failed: No such file or directory


Expected results:
error: open of /tmp/foo#.i386.rpm failed: No such file or directory

Or a way to express '#' in manifests

Comment 1 Jeff Johnson 2003-12-30 12:44:22 UTC
Yup, comment characters in manifests, not '^#' so that
input can be free field.

Do you really care? Why?

Comment 2 Enrico Scholz 2004-01-01 21:23:52 UTC
Created attachment 96738 [details]
allows escaped characters in manifest

Current apt-get generates such manifests (see URL in initial report). Patching
apt is required for backward compatibility, but it would be nice to have an
escape mechanism in rpm.

This patch allows '\' escaped characters in manifests and handles '#' in a
bash-like way (e.g. 'foo#bar' stays 'foo#bar', but 'foo #bar' becomes 'foo').

Comment 3 Enrico Scholz 2004-01-01 21:25:15 UTC
Created attachment 96739 [details]
testsuite

I do not know how to integrate it into rpm, but here is a small testsuite for
the new functionality.

Comment 4 John Thacker 2006-10-29 21:10:50 UTC
Is this still an issue on a more recent version of rpm?  (Such as a 4.4.x
version, as included in FC5 and FC6?)  FC3 and FC4 are supported by Fedora
Legacy for security fixes only, so can you please retest this in FC5 or FC6?

Comment 5 John Thacker 2006-10-29 21:25:52 UTC
*** Bug 130306 has been marked as a duplicate of this bug. ***

Comment 6 Red Hat Bugzilla 2007-08-21 05:17:49 UTC
User pnasrat's account has been closed

Comment 7 Panu Matilainen 2007-08-22 06:31:03 UTC
Reassigning to owner after bugzilla made a mess, sorry about the noise...

Comment 8 Fedora Admin XMLRPC Client 2012-04-13 23:11:28 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 9 Fedora Admin XMLRPC Client 2012-04-13 23:13:42 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 10 Panu Matilainen 2019-10-29 10:39:50 UTC
Time to get this zombie buried... a simpler alternative proposed upstream:
https://github.com/rpm-software-management/rpm/pull/918

Comment 11 Fedora Update System 2019-11-19 10:06:58 UTC
FEDORA-2019-72008fcd6d has been submitted as an update to Fedora 31. https://bodhi.fedoraproject.org/updates/FEDORA-2019-72008fcd6d

Comment 12 Fedora Update System 2019-11-20 01:27:49 UTC
rpm-4.15.1-1.fc31 has been pushed to the Fedora 31 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-2019-72008fcd6d

Comment 13 Fedora Update System 2019-11-28 01:10:27 UTC
rpm-4.15.1-1.fc31 has been pushed to the Fedora 31 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.