Bug 260371 - sysutils/fusefs-curlftpfs: Directory name with special characters or spaces do not work properly
Summary: sysutils/fusefs-curlftpfs: Directory name with special characters or spaces d...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Rodrigo Osorio
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-12 23:05 UTC by heavyjoost
Modified: 2021-12-30 23:10 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (rodrigo)


Attachments
Patch files from .../sysutils/fusefs-curlftpfs/files (17.50 KB, application/x-tar)
2021-12-12 23:05 UTC, heavyjoost
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description heavyjoost 2021-12-12 23:05:31 UTC
Created attachment 230068 [details]
Patch files from .../sysutils/fusefs-curlftpfs/files

Trying to open a remote directory with spaces or special characters in the name results in it not opening at all because the requested URI is invalid.

Same issue as described here and patch is also available: https://sourceforge.net/p/curlftpfs/bugs/65/

I attached the patch files I created in .../sysutils/fusefs-curlftpfs/files that fix the problem.
Comment 1 heavyjoost 2021-12-12 23:15:13 UTC
Bug also described here: https://bugs.gentoo.org/458110
Comment 2 commit-hook freebsd_committer freebsd_triage 2021-12-30 22:43:57 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=096cc027d44676807ab37ff140ed51f69bc85797

commit 096cc027d44676807ab37ff140ed51f69bc85797
Author:     Rodrigo Osorio <rodrigo@FreeBSD.org>
AuthorDate: 2021-12-19 07:20:12 +0000
Commit:     Rodrigo Osorio <rodrigo@FreeBSD.org>
CommitDate: 2021-12-30 22:34:55 +0000

    sysutils/fusefs-curlftpfs: Patch to escape un-encoded URL

    Add patch files from Gentoo[1] to escape un-encoded URLs passed
    to libcurl causing infinite wait as reported in this issue[2].

    CurlFTPFS project seems unmaintained for the last 4 years,
    so we apply the fixes in the port itself just like ofther
    projects does.

    [1] https://gitweb.gentoo.org/repo/gentoo.git/plain/net-fs/curlftpfs/files/curlftpfs-0.9.2-fix-escaping.patch
    [2] https://sourceforge.net/p/curlftpfs/bugs/65/

    PR:             260371
    Obtained from:  Gentoo Repo (https://gitweb.gentoo.org/repo/gentoo.git/tree/net-fs/curlftpfs/files/curlftpfs-0.9.2-fix-escaping.patch)

 sysutils/fusefs-curlftpfs/Makefile                 |   2 +-
 .../fusefs-curlftpfs/files/patch-ftpfs.c (new)     | 304 +++++++++++++++++++++
 .../files/patch-path__utils.c (new)                |  75 +++++
 .../files/patch-path__utils.h (new)                |  14 +
 4 files changed, 394 insertions(+), 1 deletion(-)
Comment 3 Rodrigo Osorio freebsd_committer freebsd_triage 2021-12-30 23:10:24 UTC
Committed, thanks