https://bugs.kde.org/show_bug.cgi?id=401013

            Bug ID: 401013
           Summary: kde-open/xdg-open does not handle symbols at start or
                    end of schema URL
           Product: frameworks-kio
           Version: 5.44.0
          Platform: Ubuntu Packages
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

SUMMARY
This relates to URI handlers, and how they are processed via xdg-open/kde-open.
 If the URI contains symbols at the front or end, then the protocol portion of
the URI will be treated as a hostname, and an error will be returned:

kf5.kio.widgets: KRun(0x1234567890) ERROR (stat): 114   "Unknown host protocol:
Host not found"


STEPS TO REPRODUCE
1. Execute in a console: xdg-open test://example--

OBSERVED RESULT
Error message is returned:
kf5.kio.widgets: KRun(0x001234567890) ERROR (stat): 114   "Unknown host test:
Host not found"


EXPECTED RESULT
Message returned:
kf5.kio.core: Refilling KProtocolInfoFactory cache in the hope to find "test"

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 18.04
(available in About System)
KDE Plasma Version: 5.12.6
KDE Frameworks Version: 5.44.0
Qt Version: 5.9.5

ADDITIONAL INFORMATION
I'm not entirely clear where this bug lies, as I'm not fully understanding the
structure of the framework that is involved.  Please let me know if I've filed
this in the wrong place.

You can see the correct behavior by executing the same command without the --
on the end:
xdg-open test://example

You can test this with any protocol handler, so long as the part after :// is
either preceded with or followed by a symbol.

The specific piece of software I am having issue with is SolarWinds N-Central
MSP connect agent(via WINE).  It produces a long unique string followed by --
as the URI.  Ex:
mspancsxvp://thisisjustanexampleofareallylongstringofcharactersthatrepresentswhatmspconnectmightuseforaguid--

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to