ftpAccessWrapper, problems with passwords containing "/"

Home Forums Troubleshooting Plugins & Bridges ftpAccessWrapper, problems with passwords containing "/"

Tagged: , ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #93075
    Profile photo of abolfazl
    Anonymous

    Hi,

    we noticed problems with passwords containing a “/” in ftpAccessWrapper:

    ERROR | <user> | class.ftpAccessWrapper.php | error l.186 | message=rmdir(): Unable to connect to ftp://USER:uKr/RwKy9Lh5@HOST/html/cgi-bin

    Escaping buildRealUrl() in access.ftp/class.ftpAccessWrapper.php doesn’t help. Any ideas?

    We skipped the problem by changing the password.

    Regards
    Thomas


    • This topic was modified 6 years ago by Profile photo of abolfazl . Reason: 7521
    #93136
    Profile photo of Charles
    Charles
    Keymaster

    I don’t know if we can urlencode a login/password when building an URL like that, i don’t think so.
    -c


    Charles, Pydio author - doing my best to help !
    If you like the software or want to say thanks, pay by a tweet, mention #pydio or follow us

    #93198
    Profile photo of abolfazl
    Anonymous

    We can, I have tried the following code (for password only):

    # diff -Naur plugins/access.ftp/class.ftpAccessWrapper.php.old plugins/access.ftp/class.ftpAccessWrapper.php
    — plugins/access.ftp/class.ftpAccessWrapper.php.old 2015-07-08 11:15:15.626340341 +0200
    +++ plugins/access.ftp/class.ftpAccessWrapper.php 2015-07-08 11:10:57.343847566 +0200
    @@ -467,7 +467,7 @@
    $parts = AJXP_Utils::safeParseUrl($url);
    }
    $serverPath = AJXP_Utils::securePath(“/$this->path/”.$parts[“path”]);
    – return “ftp”.($this->secure?”s”:””).”://$this->user:”.$this->password.”@$this->host:$this->port”.$serverPath;
    + return “ftp”.($this->secure?”s”:””).”://$this->user:”.urlencode($this->password).”@$this->host:$this->port”.$serverPath;
    }

    /** This method retrieves the FTP server features as described in RFC2389

    Regards
    Thomas


    #93201
    Profile photo of abolfazl
    Anonymous
    #93244
    Profile photo of Charles
    Charles
    Keymaster

    ok thanks, i’ll look at that. Did you sign the CLA (See Contribute)?
    -c


    Charles, Pydio author - doing my best to help !
    If you like the software or want to say thanks, pay by a tweet, mention #pydio or follow us

    #94642
    Profile photo of abolfazl
    Anonymous

    sorry, yes right now..


Viewing 6 posts - 1 through 6 (of 6 total)

The forum ‘Plugins & Bridges’ is closed to new topics and replies.