docbase not updated when file moves

Bug #246721 reported by reader4
2
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Undecided
Unassigned

Bug Description

The 'sodipodi:docbase' attribute does not appear to be updated when an Inkscape file is moved from one directory to another. This causes undesirable behavior when embedding images defined using a relative path (see 168542).

Revision history for this message
sas (sas-sas) wrote :

In fact, sodipodi:docbase is no longer used, which is why it isn't updated. Unless your file was produced in an old version of Inkscape (such as 0.45.1), there shouldn't even be a sodipodi:docbase attribute in the file.

So embedimage.py shouldn't be using sodipodi:docbase anymore. That can be dealt with in bug 246724.

I notice that svg_and_media_zip_output.py also tries to read sodipodi:docbase, but doesn't use the value at all.

Since sodipodi:docbase is no longer meaningful, and can be misleading, and since there are privacy concerns with it (bug 168958), we should remove it whenever we see it. Patch attached for that.

Revision history for this message
sas (sas-sas) wrote :

I've committed the patch (SVN revision 19239) and removed the use of sodipodi:docbase in the Python scripts (revision 19238). The script svg_and_media_zip_output.py appears to be completely broken anyway (on Windows, at least).

So I'm marking this bug as fixed, as there is no longer any sodipodi:docbase to update, even when opening files originally created in older versions of Inkscape (or Sodipodi).

Changed in inkscape:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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