Skip to main content

[Case 104037] Webdavs server (WebDisk) sending wrong mime type

Comments

13 comments

  • cPanelMichael
    Hello :) Have you tried using third-party software other than the dolphin file manager to connect to web disk? This could help isolate the issue further. Thank you.
    0
  • johnnew
    Hi Michael, I tried GNOME Nautilus (under KDE) and the same problem occurred, but worse. The first time I tried to open a .php file, I got the same error message referencing the mime-type httpd/unix-file. As with Dolphin, it allowed me to choose which application would open the file (I chose a text editor, in this case). However, when I went to open a .jpg file, Nautilus tried to open that file with the text editor because it had associated the httpd/unix-file type with a text editor. (Dolphin doesn't seem to associate a mime type with a program when using webdavs, so I get the same file type warning every time.) So, still the same problem. I guess I could install a complete GNOME desktop to rule out a KDE problem. Possibly I could even get hold of a Windows machine as well, but I think Windows handles file associations by file extension (is that still the case? I haven't used Windows in a long time). John
    0
  • cPanelMichael
    You could also have your hosting provider open a support ticket with us on your behalf so we can take a closer look. If you do choose to do that, please post the ticket number here so we can update this thread with the outcome. Thank you.
    0
  • johnnew
    I have asked my hosting provider to open a support ticket. I'll post here with their reply and hopefully a ticket number. Thanks again, John
    0
  • johnnew
    My hosting provider has opened a ticket on this issue and the ticket number is 5026769. John
    0
  • cPanelMichael
    To update, we have yet to reproduce the issue due to a lack of authentication details to the affected server. I will update this thread with more information once that is provided in the ticket. Thank you.
    0
  • cPanelMichael
    The ticket was closed due to a lack of user response after our request for authentication details. Please ensure you have them reply to the ticket if you would like us to investigate further. Thank you.
    0
  • johnnew
    I have nudged my hosting provider about the ticket. I'll let you know what happens.
    0
  • cPanelKenneth
    This is happening because we only send the 'unix-file' type for any non-directory item on the system. I'm not sure why this was chosen (as opposed to sending the actual mime type). Thank you for your patience in helping us find this.
    0
  • johnnew
    Glad to have been a help. I created an account for cPanel support at my hosting provider and gave them the credentials to provide in their ticket with you. But if this behaviour is common to all cPanel installs and not a misconfiguration, I'm not sure if that account really helped that much. Is this something that cPanel hopes to fix?
    0
  • cPanelMichael
    Internal case 104037 is now open regarding this issue. That's not to say a change in the current behavior is guaranteed, but it's under review to determine if sending the actual mime type is feasible. I will ensure this thread is updated with the outcome of the case. Thank you.
    0
  • cPanelKenneth
    [quote="johnnew, post: 1662462">Glad to have been a help. I created an account for cPanel support at my hosting provider and gave them the credentials to provide in their ticket with you. But if this behaviour is common to all cPanel installs and not a misconfiguration, I'm not sure if that account really helped that much.
    Your patience, and assistance, helped our technical support staff narrow down the issue, and reproduce it. That enabled them to file a well-formed bug report. That bug report prompted my investigating the issue and identifying the root cause in the source. All of that came about because of your actions. Thank you! Please feel free to remove the account you created for this. We have sufficient information now to reliable reproduce it for testing purposes.
    0
  • johnnew
    Kenneth and Michael, Thanks for all your work and I'm pleased that the test account actually did help. My hosting provider passed along some information from the cPanel internal case suggesting to "use a WebDav client that allows a 'sync' of the files with a local store [so] it could use the Operating Systems mime type handling for the local file". That suggestion, a pointer to an article about mounting a webdav resource, and some googling, provided a workaround: locally mount the webdav resource using the davfs2 or wdfs filesystems. Essentially, the workaround involves adding a mountpoint to the local filesystem, say /mnt/webdav, and then a line in /etc/fstab to handle the mounting: For davfs2, the fstab entry is in the form: [:port][/directory/] [mountpoint] fuse [options] 0 0 For more info type wdfs --help at the command line, and see [url=http://forums.opensuse.org/showthread.php/394408-mounting-webdav-using-wdfs]mounting webdav using wdfs I would think the minimum [options] needed would be: username=,password= Alternatively, you could also mount the webdav resource from the command line as root: wdfs [:port][/directory/] [mountpoint] -o [options] I hope this post helps someone else with the workaround. Thanks again
    0

Please sign in to leave a comment.