Bug 118847

Summary: xsane saves files as .ppm, not .pnm
Product: [Fedora] Fedora Reporter: Joerg Skottke <jsk_priv>
Component: shared-mime-infoAssignee: Bastien Nocera <bnocera>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: alexl, bnocera, twaugh
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: 0.20-1.fc7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-02-06 12:55:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description Joerg Skottke 2004-03-21 15:33:18 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040312

Description of problem:
> file brauerei.pnm
brauerei.pnm: Netpbm PPM "rawbits" image data

Nautilus warns about a security risk. Correcting the extension to
match the magic solves the problem.

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

How reproducible:

Steps to Reproduce:
1. use xsane (as root) to scan a file and save it somewhere
2. try to open the file in Nautilus

Actual Results:  A warning is displayed about wrong filetype and a
possible security risk

Expected Results:  file should be displayed

Additional info:

Comment 1 Tim Waugh 2004-03-26 10:53:03 UTC
I think nautilus is in the wrong here.

Comment 2 Alexander Larsson 2004-03-29 08:47:53 UTC
I think this is a mime info bug. It might be that we need alias
support in the mime data to handle this.

Comment 3 Bastien Nocera 2007-02-02 10:26:35 UTC
Yep, fixed upstream now:

2007-02-02  Bastien Nocera  <hadess@hadess.net>

        * freedesktop.org.xml.in: Make PGM, PBM and PPM sub-classes
        of PNM (RH #118847)

Comment 4 Bastien Nocera 2007-02-06 12:55:12 UTC
Fixed in shared-mime-info-0.20-1.fc7