https://bugs.kde.org/show_bug.cgi?id=487151
Bug ID: 487151 Summary: Unable to open a file ending in :0 from an sftp: location Classification: Applications Product: kate Version: 24.02.2 Platform: Neon OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: application Assignee: kwrite-bugs-n...@kde.org Reporter: correo--correo+...@hotmail.com Target Milestone: --- SUMMARY If you try to open a file from a sftp: location that ends with :0, that suffix is removed and kate tries to open the file without it instead. STEPS TO REPRODUCE 1. Run the following command: `sftp://invalid/test:0` 2. Wait for kate to open. Ignore the 'Failed to resolve hostname invalid (Name or service not known)' message. Press ok to dismiss 3. Check the file that was opened (if you have tabs you can hover on it for the full path) OBSERVED RESULT The full path that kate tried to open is `sftp://invalid/test` EXPECTED RESULT The full path tha kate should open is `sftp://invalid/test:0` SOFTWARE/OS VERSIONS Linux/KDE Plasma: KDE neon 6.0 KDE Plasma Version: 6.0.4 KDE Frameworks Version: 6.1.0 Qt Version: 6.7.0 ADDITIONAL INFORMATION - Even though the example uses an invalid hostname and an invalid file, you can use a real sftp file with that extension (that's how I discovered it on the first place). You'll see that kate still tries to open the invalid file, and if you do have that file it will be opened instead! - Only numbers seems to be removed, and up to two suffixes: `sample:0` -> `sample`; `sample:a` -> `sample:a`; `sample:1:2` - > `sample`; `sample:1:2:3` - > `sample:1`; - If the file name is just `:0`, kate will try to open the folder -- You are receiving this mail because: You are watching all bug changes.