docbase not updated when file moves
Bug #246721 reported by
reader4
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).
To post a comment you must log in.
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.