Skip to content

Feature: Extract credentials from FTP URL#18558

Open
xinyuzjj wants to merge 1 commit into
files-community:mainfrom
xinyuzjj:fix/ftp-url-credentials
Open

Feature: Extract credentials from FTP URL#18558
xinyuzjj wants to merge 1 commit into
files-community:mainfrom
xinyuzjj:fix/ftp-url-credentials

Conversation

@xinyuzjj

@xinyuzjj xinyuzjj commented Jun 7, 2026

Copy link
Copy Markdown

Summary

This PR implements RFC 1738 compliant FTP URL credential extraction, allowing users to embed credentials directly in the FTP URL (e.g., ) instead of requiring manual dialog input.

Changes

Modified :

  1. **** - Now correctly parses host when credentials are present (handles format)
  2. **** - Now parses port from credential-containing URLs
  3. **** (NEW) - Extracts username/password from URL per RFC 1738
    • Supports (full credentials)
    • Supports (username only, empty password)
    • Properly URL-decodes credentials
  4. **** - Updated to auto-use extracted credentials, falling back to stored credentials/anonymous

Testing

The implementation follows RFC 1738 for FTP URL syntax:

  • → full credentials
  • → username only
  • → anonymous (existing behavior preserved)
  • Proper URL decoding of special characters in credentials

Issue

Closes #14953

@yair100 yair100 changed the title feat: extract credentials from FTP URL (RFC 1738) Feature: Extract credentials from FTP URL Jun 12, 2026
@yair100 yair100 added the ready for review Pull requests that are ready for review label Jun 12, 2026
public static string GetFtpPath(string path)
{
path = path.Replace('\\', '/');
path = path.Replace('\', '/');

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the purpose of this change? I think it won't compile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready for review Pull requests that are ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Use username and password from the FTP address instead of showing dialog

3 participants