Bug 468514 - Doesn't show book content if filename contains #
Summary: Doesn't show book content if filename contains #
Status: RESOLVED FIXED
Alias: None
Product: Arianna
Classification: Applications
Component: general (show other bugs)
Version: 1.0.0
Platform: Flatpak Linux
: NOR normal
Target Milestone: ---
Assignee: Carl Schwan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-14 21:01 UTC by Linus Kardell
Modified: 2023-04-15 18:09 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Linus Kardell 2023-04-14 21:01:11 UTC
SUMMARY
If the filename of a book contains the character #, Sigil fails to render the content, and on the console it prints:
qml: Book error Empty Response
qrc:/content/ui/EpubViewerPage.qml:336: Error: Cannot assign to non-existent property "file"

STEPS TO REPRODUCE
1. Create a new ebook (e.g. by just opening Sigil, and saving the default template with some body text added)
2. Give it a filename containing #
3. Open Arianna
4. Add the book to Arianna
5. Click the book

OBSERVED RESULT
No content shown

EXPECTED RESULT
The content should be shown

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20230413
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.8
Kernel Version: 6.2.9-1-default (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 5800X 8-Core Processor
Memory: 62.7 Gibyte of RAM
Graphics Processor: NVIDIA GeForce RTX 2080 Ti/PCIe/SSE2
Manufacturer: ASUS
Comment 1 Carl Schwan 2023-04-15 18:09:38 UTC
Git commit 4eb437716a2407bce7a54afe7dedc57cb39a374a by Carl Schwan.
Committed on 15/04/2023 at 18:08.
Pushed by carlschwan into branch 'master'.

Fix opening book with # or ? in their name

M  +1    -1    src/content/ui/EpubViewerPage.qml

https://invent.kde.org/graphics/arianna/commit/4eb437716a2407bce7a54afe7dedc57cb39a374a