Incorrect PATH scan results in extensions not found

Bug #801568 reported by Patrick Monnerat on 2011-06-24
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Inkscape
Medium
Patrick Monnerat
inkscape (Fedora)
Won't Fix
Undecided

Bug Description

When the PATH environment variable contains a null component (to force current
dir lookup), subsequent components are not used for extension lookup.
This results in missing existing programs, thus disabling some importation
extensions.

Version: inkscape-0.48.1-1.fc14.1.x86_64

See https://bugzilla.redhat.com/show_bug.cgi?id=701390

Description of problem:
When the PATH environment variable contains a null component (to force current dir lookup), subsequent components are not used for extension lookup.
This results in missing existing programs, thus disabling some importation extensions.

Version-Release number of selected component (if applicable):
inkscape-0.48.1-1.fc14.1.x86_64

How reproducible:
Always

Steps to Reproduce:
1. prefix the PATH value with a colon (:) 'export PATH=":$PATH"'
2. run inkscape
3. Try to open a postscript (.ps) file ...

Actual results:
Cannot import a postscript file.

Expected results:
Proper importation and conversion of a postscript file, even in case of null component in the PATH.

Additional info:
The attached patch fixes the problem.
I did NOT report the bug and the path upstream.

Created attachment 496334
Patch fixing the problem

Patrick Monnerat (monnerat) wrote :
su_v (suv-lp) on 2011-09-11
tags: added: extensions-plugins
su_v (suv-lp) wrote :

Reproduced with Inkscape 0.48+devel r10627 on Mac OS X 10.5.8 (i386).

Changed in inkscape:
importance: Undecided → Medium
status: New → Confirmed
Kris (kris-degussem) wrote :

I could not reproduce the result on vista 64 bit, and current trunk.
The fix (at least second part) seemed quite obvious, so it is committed in trunk revision 11312.

Changed in inkscape:
milestone: none → 0.49
assignee: nobody → Patrick Monnerat (pm-datasphere)
status: Confirmed → Triaged
status: Triaged → Fix Committed
Patrick Monnerat (monnerat) wrote :

@Kris: many thanks for commit

su_v (suv-lp) wrote :

@Kris - would it be save to backport the fix to 0.48.x?

Patrick Monnerat (monnerat) wrote :

FYI: I'm running 0.48.1 with this patch on Fedora 14 64bit since may 2, 2011 (happy birthday!). This is the stock Fedora package + the patch.

su_v (suv-lp) on 2012-05-02
tags: added: backport-proposed
Kris (kris-degussem) wrote :

Backported in 0.48.x revision 9891 for inkscape 0.48.4.

Changed in inkscape:
milestone: 0.49 → 0.48.4
tags: removed: backport-proposed

This message is a notice that Fedora 14 is now at end of life. Fedora
has stopped maintaining and issuing updates for Fedora 14. It is
Fedora's policy to close all bug reports from releases that are no
longer maintained. At this time, all open bugs with a Fedora 'version'
of '14' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this
occurring, but we forgot to do that. A thousand apologies.)

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

Bug Reporter: Thank you for reporting this issue and we are sorry that
we were unable to fix it before Fedora 14 reached 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 to click on
"Clone This Bug" (top right of this page) and open it against that
version of Fedora.

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.

The process we are following is described here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

su_v (suv-lp) wrote :

Also fixes
- Bug #168747 “fails to search external commands for extensions”
  <https://bugs.launchpad.net/inkscape/+bug/168747>

Ted Gould (ted) on 2012-12-17
Changed in inkscape:
status: Fix Committed → Fix Released
Changed in inkscape (Fedora):
importance: Unknown → Undecided
status: Unknown → Won't Fix
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.