https://bugs.kde.org/show_bug.cgi?id=472778
Bug ID: 472778 Summary: Relative file URL generating incorrectly Classification: Applications Product: tellico Version: 3.5.1 Platform: Manjaro OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: general Assignee: ro...@periapsis.org Reporter: agentrebo...@gmail.com Target Milestone: --- SUMMARY After creating a new URL field with relative set to true, any URLs which may be added end up not working when moving the directory to a different location. The link will change and be mostly correct, however it will remove the folder which the Tellico file is contained within from the path which makes it not work. STEPS TO REPRODUCE 1. Create a folder named "Test". 2. Place some kind of file inside of the "Test" folder, such as an image. Name it "Testfile". 3. Open Tellico and create a new custom collection. Save it into the "Test" folder under the name "TestCollection". 4. In this collection, create a URL field named "URL" and set property "relative" to "true". 5. Create a new entry titled "Test", and link the URL field to the "Testfile" file in the same folder. 6. Now that the URL is linking to the file correctly, save and exit Tellico. 7. Exit the "Test" folder and create a new folder within the same location. Title the new folder "MoveTestHere". 8. Move the "Test" folder into the "MoveTestHere" folder and open the Tellico file to view the URL. OBSERVED RESULT The URL which was set to relative is now altered to fit the change in location, but the "Test" folder which the files are contained within will be excluded from the path, and the URL will no longer function due to this. e.g. The URL which once pointed to "file:///home/*user*/Test/Testfile.png" now points to "file:///home/*user*/MoveTestHere/Testfile.png". (Moving just the files without the "Test" folder to "MoveTestHere" doesn't help either as it then will just exclude "MoveTestHere" from the path instead). EXPECTED RESULT The URL which is set to relative should now have been altered to fit the change in location, and should function as previously. e.g. The URL which once pointed to "file:///home/*user*/Test/Testfile.png" should now point to "file:///home/*user*/MoveTestHere/Test/Testfile.png". SOFTWARE/OS VERSIONS Linux/KDE Plasma: Manjaro KDE (available in About System) KDE Plasma Version: 5.27.6 KDE Frameworks Version: 5.108.0 Qt Version: 5.15.10 ADDITIONAL INFORMATION -- You are receiving this mail because: You are watching all bug changes.