Skip to content

Invalid URL schemes are not properly handled and trigger fallback file resolution crashes #3396

@yasqdb

Description

@yasqdb

Bug

When providing an unsupported URL scheme (ex: ftp://), the CLI validates the input correctly but does not stop execution afterward.
Instead of exiting cleanly, the process continues and attempts to treat the invalid URL as a local file path, which leads to a filesystem error.

Steps to reproduce

Run any unsupported URL scheme (all URL's other than 'http' or 'https') :
ex : "docling ftp://some-server/file.pdf"

Docling version

Docling version: 2.90.0
Docling Core version: 2.74.0
Docling IBM Models version: 3.13.0
Docling Parse version: 5.9.0
Python: cpython-313 (3.13.13)
Platform: Windows-11-10.0.26200-SP0

Python version

Python 3.13.13

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions