Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Directories and files are shown twice #59

Closed
extreme-sysadminning opened this issue Mar 31, 2021 · 10 comments
Closed

Directories and files are shown twice #59

extreme-sysadminning opened this issue Mar 31, 2021 · 10 comments
Assignees
Labels
enhancement New feature or request

Comments

@extreme-sysadminning
Copy link

extreme-sysadminning commented Mar 31, 2021

I'm mounting a default apache dirlisting as a user, like so:

mkdir tecneeq
httpdirfs -f --cache -u dude -p secret https://tecneeq.server.com:3412/ tecneeq

But strangely, every entry, be it file or directory, is listed twice (both work as expected):

grafik

My environment:

kkruse@nb12615:~$ httpdirfs -V
HTTPDirFS version 1.1.10
FUSE library version: 2.9.9
fusermount3 version: 3.10.2
using FUSE kernel interface version 7.19
kkruse@nb12615:~$ uname -sr
Linux 5.10.0-4-amd64
kkruse@nb12615:~$ cat /etc/debian_version 
bullseye/sid
@extreme-sysadminning
Copy link
Author

Compiled the latest git and updated my system, still the same problem:

image

Environment:

kkruse@nb12615:~$ httpdirfs -V
HTTPDirFS version 1.2.0
libcurl SSL engine: OpenSSL/1.1.1k
FUSE library version: 2.9.9
fusermount3 version: 3.10.2
using FUSE kernel interface version 7.19
kkruse@nb12615:~$ uname -sr
Linux 5.10.0-5-amd64
kkruse@nb12615:~$ cat /etc/debian_version
bullseye/sid

@fangfufu
Copy link
Owner

fangfufu commented Apr 1, 2021

Could you possibly make this server accessible me, so I can investigate? Alternatively, could you tell me the server's configuration, please?

@extreme-sysadminning
Copy link
Author

Sure, i sent you a login to your gmail account. Thanks a bunch for your time :-)

@extreme-sysadminning
Copy link
Author

I think i found it, it's one of those options in my apache2.6 .htacces:

Options +Indexes
IndexOptions FancyIndexing HTMLTable FoldersFirst IconsAreLinks NameWidth=* Charset=UTF-8

@extreme-sysadminning
Copy link
Author

It's the IconsAreLinks option.

So there is a workaround: Remove IconsAreLinks option from IndexOptions.

@fangfufu
Copy link
Owner

fangfufu commented Apr 2, 2021

If you look at the source code of the html, before you changed the settings, you can see that the links appear twice. I suppose I can work on removing duplicated links.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
--
  | <html>
  | <head>
  | <title>Index of /</title>
  | </head>
  | <body>
  | <h1>Index of /</h1>
  | <table>
  | <tr><th valign="top"><img src="/icons/blank.gif" alt="[ICO]"></th><th><a href="?C=N;O=D">Name</a></th><th><a href="?C=M;O=A">Last modified</a></th><th><a href="?C=S;O=A">Size</a></th><th><a href="?C=D;O=A">Description</a></th></tr>
  | <tr><th colspan="5"><hr></th></tr>
  | <tr><td valign="top"><a href="dokus/"><img src="/icons/folder.gif" alt="[DIR]"></a></td><td><a href="dokus/">dokus/</a></td><td align="right">2021-03-28 00:33  </td><td align="right">  - </td><td>&nbsp;</td></tr>
  | <tr><td valign="top"><a href="ebooks/"><img src="/icons/folder.gif" alt="[DIR]"></a></td><td><a href="ebooks/">ebooks/</a></td><td align="right">2021-03-24 11:19  </td><td align="right">  - </td><td>&nbsp;</td></tr>
  | <tr><td valign="top"><a href="filme/"><img src="/icons/folder.gif" alt="[DIR]"></a></td><td><a href="filme/">filme/</a></td><td align="right">2021-03-31 10:27  </td><td align="right">  - </td><td>&nbsp;</td></tr>
  | <tr><td valign="top"><a href="games/"><img src="/icons/folder.gif" alt="[DIR]"></a></td><td><a href="games/">games/</a></td><td align="right">2020-11-15 16:41  </td><td align="right">  - </td><td>&nbsp;</td></tr>
  | <tr><td valign="top"><a href="learning/"><img src="/icons/folder.gif" alt="[DIR]"></a></td><td><a href="learning/">learning/</a></td><td align="right">2021-03-24 15:59  </td><td align="right">  - </td><td>&nbsp;</td></tr>
  | <tr><td valign="top"><a href="musik/"><img src="/icons/folder.gif" alt="[DIR]"></a></td><td><a href="musik/">musik/</a></td><td align="right">2021-03-22 09:40  </td><td align="right">  - </td><td>&nbsp;</td></tr>
  | <tr><td valign="top"><a href="serien/"><img src="/icons/folder.gif" alt="[DIR]"></a></td><td><a href="serien/">serien/</a></td><td align="right">2021-03-31 19:57  </td><td align="right">  - </td><td>&nbsp;</td></tr>
  | <tr><td valign="top"><a href="system/"><img src="/icons/folder.gif" alt="[DIR]"></a></td><td><a href="system/">system/</a></td><td align="right">2021-03-24 11:25  </td><td align="right">  - </td><td>&nbsp;</td></tr>
  | <tr><td valign="top"><a href="tinyfilemanager/"><img src="/icons/folder.gif" alt="[DIR]"></a></td><td><a href="tinyfilemanager/">tinyfilemanager/</a></td><td align="right">2020-12-16 09:43  </td><td align="right">  - </td><td>&nbsp;</td></tr>
  | <tr><th colspan="5"><hr></th></tr>
  | </table>
  | <address>Apache/2.4.46 (Debian) Server at tecneeq.cybercowboy.de Port 4711</address>
  | </body></html>

@fangfufu fangfufu self-assigned this Apr 2, 2021
@fangfufu fangfufu added the enhancement New feature or request label Apr 2, 2021
@extreme-sysadminning
Copy link
Author

Cool, i'll leave the access for later testing for a few days.

Thanks mate :-)

@fangfufu
Copy link
Owner

fangfufu commented Apr 2, 2021

It is okay, you can close the access now. I can configure my own apache to do the same thing. I probably won't have time to deal with this properly until I finish my PhD thesis anyways.

@extreme-sysadminning
Copy link
Author

Ok then. Good luck :-)

fangfufu added a commit that referenced this issue Aug 8, 2021
Stop duplicated link from showing for Apache server configured
with IconsAreLinks option.
@fangfufu
Copy link
Owner

fangfufu commented Aug 8, 2021

@extreme-sysadminning , I know this is more than a year late, but I have fixed it. I think. Please test it out. At least it is working for the official Debian CD image server.

@fangfufu fangfufu closed this as completed Aug 8, 2021
fangfufu added a commit that referenced this issue Aug 8, 2021
Stop duplicated link from showing for Apache server configured
with IconsAreLinks option.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants