Bug 13617 - konqueror opening links to files inside tarfile
Summary: konqueror opening links to files inside tarfile
Status: RESOLVED UNMAINTAINED
Alias: None
Product: konqueror
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Other
: NOR wishlist
Target Milestone: ---
Assignee: Konqueror Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-10-25 20:18 UTC by Unknown
Modified: 2009-09-09 00:35 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Hohndel 2000-10-25 20:05:03 UTC
(*** This bug was imported into bugs.kde.org ***)

Package: konqueror
Version: Konqueror 1.9.8 as of KDE Release 2.0
Severity: wishlist
Installed from: SuSE RPMs

I use konqueror to open a tar.gz for browsing
(say /tmp/t.tar.gz)
and that tar file contains an html file and a symbolic
link to that html file.
If I then click on that symbolic link to an html filei
nside that tar.gz file konqueror tries to access that
document but failes with 
"The file or directory /tmp/target.html does not exist".
I.e. it takes the link relative to the file system 
and not relative to the tar file.
I admit this is a subtle point...

        Dirk

(submitted via bugs.kde.org)
Comment 1 Stephan Kulow 2000-10-25 20:43:38 UTC
David Faure wrote:
> 
> Hello Dirk
> 
> On Wednesday 25 October 2000 20:05 hohndel@suse.de wrote:
> > Package: konqueror
> > Version: Konqueror 1.9.8 as of KDE Release 2.0
> > Severity: wishlist
> > Installed from: SuSE RPMs
> >
> > I use konqueror to open a tar.gz for browsing
> > (say /tmp/t.tar.gz)
> > and that tar file contains an html file and a symbolic
> > link to that html file.
> > If I then click on that symbolic link to an html filei
> > nside that tar.gz file konqueror tries to access that
> > document but failes with
> > "The file or directory /tmp/target.html does not exist".
> > I.e. it takes the link relative to the file system
> > and not relative to the tar file.
> > I admit this is a subtle point...
> 
> The link should be a relative link then.
> 
> It's just the same as when you mount a filesystem into another partition
> or use NFS. Only relative symlinks work in that case.
> 
I understood the bug report in a way that link.html pointing
to target.html are resolved within the directory the tarball
is in not in the tarball itself. Which could be argued as
bug - but a subtle as Dirk says :)

Greetings Stephan

-- 
Frauen und Maenner passen vielleicht nicht zusammen aber meine 
allerschoensten Schrammen habe ich mir bei diesem Duell geholt.
       -- Reinhard Mey
Comment 2 David Faure 2000-10-25 21:31:19 UTC
Hello Dirk

On Wednesday 25 October 2000 20:05 hohndel@suse.de wrote:
> Package: konqueror
> Version: Konqueror 1.9.8 as of KDE Release 2.0
> Severity: wishlist
> Installed from: SuSE RPMs
>=20
> I use konqueror to open a tar.gz for browsing
> (say /tmp/t.tar.gz)
> and that tar file contains an html file and a symbolic
> link to that html file.
> If I then click on that symbolic link to an html filei
> nside that tar.gz file konqueror tries to access that
> document but failes with=20
> "The file or directory /tmp/target.html does not exist".
> I.e. it takes the link relative to the file system=20
> and not relative to the tar file.
> I admit this is a subtle point...

The link should be a relative link then.

It's just the same as when you mount a filesystem into another partition
or use NFS. Only relative symlinks work in that case.

I'm not too sure this should be hacked into the tar-file support...
It could be but : imagine you then give that tar file to someone else
who will untar it into a directory of his. An absolute link won't work
whereas a relative link would.

--=20
David FAURE david@mandrakesoft.com faure@kde.org
http://www.mandrakesoft.com/~david/ http://www.konqueror.org/
KDE Making The Future of Computing Available Today
See http://www.kde.org/kde1-and-kde2.html for how to set up KDE 2
Comment 3 David Faure 2000-10-25 21:49:47 UTC
On Wednesday 25 October 2000 20:43 Stephan Kulow wrote:
> David Faure wrote:
> >=20
> > Hello Dirk
> >=20
> > On Wednesday 25 October 2000 20:05 hohndel@suse.de wrote:
> > > Package: konqueror
> > > Version: Konqueror 1.9.8 as of KDE Release 2.0
> > > Severity: wishlist
> > > Installed from: SuSE RPMs
> > >
> > > I use konqueror to open a tar.gz for browsing
> > > (say /tmp/t.tar.gz)
> > > and that tar file contains an html file and a symbolic
> > > link to that html file.
> > > If I then click on that symbolic link to an html filei
> > > nside that tar.gz file konqueror tries to access that
> > > document but failes with
> > > "The file or directory /tmp/target.html does not exist".
> > > I.e. it takes the link relative to the file system
> > > and not relative to the tar file.
> > > I admit this is a subtle point...
> >=20
> > The link should be a relative link then.
> >=20
> > It's just the same as when you mount a filesystem into another partitio=
n
> > or use NFS. Only relative symlinks work in that case.
> >=20
> I understood the bug report in a way that link.html pointing
> to target.html are resolved within the directory the tarball
> is in not in the tarball itself. Which could be argued as
> bug - but a subtle as Dirk says :)

Nope I tested that and it works just fine.

I tested
blah/
blah/test.html
blah/link.html    where link.html -> test.html

This works the link is resolved ok.

--=20
David FAURE david@mandrakesoft.com faure@kde.org
http://www.mandrakesoft.com/~david/ http://www.konqueror.org/
KDE Making The Future of Computing Available Today
See http://www.kde.org/kde1-and-kde2.html for how to set up KDE 2
Comment 4 Dirk Hohndel 2000-10-26 06:23:44 UTC
Hi David

On Wed 25 Oct David Faure wrote:
> 
> The link should be a relative link then.
> 
> It's just the same as when you mount a filesystem into another partition
> or use NFS. Only relative symlinks work in that case.

It is a hardlink in this case which should be recognizable as
"contained inside the tar file".

> I'm not too sure this should be hacked into the tar-file support...

Neither am I as this is not exactly an important issue I just happened
to run into it and wanted to report it.

> It could be but : imagine you then give that tar file to someone else
> who will untar it into a directory of his. An absolute link won't work
> whereas a relative link would.

And so would the hardlink that I have in this case

Dirk
Comment 5 Stephan Kulow 2004-05-17 20:10:40 UTC
Replaced hohndel@suse.de with null@kde.org due to bounces by reporter
Comment 6 Jonas Vejlin 2009-06-30 10:06:03 UTC
is this stil valid wish for konq 4.2.4?
Comment 7 FiNeX 2009-09-09 00:35:42 UTC
All reports about file management mode reported against KDE 3 (konqueror) has been closed: konqueror in KDE 3 is no more developed and mantained. All bugs and wishes which could be interesting for Dolphin in KDE 4 (the new KDE file manager) has been collected into a specific list.

Please try the new file manager before request new features and report bugs.

Before submitting new reports check carefully the already opened KDE/Dolphin reports in order to don't add duplicates.

Many thanks.