<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>461391</bug_id>
          
          <creation_ts>2022-11-04 01:18:04 +0000</creation_ts>
          <short_desc>Image List report fails to load</short_desc>
          <delta_ts>2024-05-16 01:41:35 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>tellico</product>
          <component>general</component>
          <version>3.4.4</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Robby Stephenson">robby</reporter>
          <assigned_to name="Robby Stephenson">robby</assigned_to>
          
          
          <cf_commitlink>https://invent.kde.org/office/tellico/commit/9894bf2752d2584fdd4a61b52d0a738ba902dbf1</cf_commitlink>
          <cf_versionfixedin>3.4.5</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2168580</commentid>
    <comment_count>0</comment_count>
    <who name="Robby Stephenson">robby</who>
    <bug_when>2022-11-04 01:18:04 +0000</bug_when>
    <thetext>As reported on the mailing list, the Image List template fails to load
https://mail.kde.org/pipermail/tellico-users/2022-August/001769.html

The report is a somewhat large file for 1000+ entries.

On investigation, seems to be hitting the 2MB limit int he QWebEngineView::setHtml()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2169488</commentid>
    <comment_count>1</comment_count>
    <who name="Robby Stephenson">robby</who>
    <bug_when>2022-11-06 00:59:48 +0000</bug_when>
    <thetext>Git commit 0a2972f61a03283b0db4d37474e5ec3c792a3d7f by Robby Stephenson.
Committed on 06/11/2022 at 00:59.
Pushed by rstephenson into branch &apos;3.4&apos;.

Use a temporary file for large reports to avoid QWebEngine limit

QWebEngine::load is limited to 2MB, which when encoded and otherwise
processed, seems to be as low as 1,200,000 &quot;characters&quot; in a QString.

For large file, write to a temporary file before loading. This does not
take care of any relative links in the HTML, which will need further
work.
FIXED-IN: 3.4.5

M  +4    -0    ChangeLog
M  +20   -2    src/reportdialog.cpp
M  +2    -0    src/reportdialog.h

https://invent.kde.org/office/tellico/commit/0a2972f61a03283b0db4d37474e5ec3c792a3d7f</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2169489</commentid>
    <comment_count>2</comment_count>
    <who name="Robby Stephenson">robby</who>
    <bug_when>2022-11-06 01:00:00 +0000</bug_when>
    <thetext>Git commit 9894bf2752d2584fdd4a61b52d0a738ba902dbf1 by Robby Stephenson.
Committed on 06/11/2022 at 00:55.
Pushed by rstephenson into branch &apos;master&apos;.

Use a temporary file for large reports to avoid QWebEngine limit

QWebEngine::load is limited to 2MB, which when encoded and otherwise
processed, seems to be as low as 1,200,000 &quot;characters&quot; in a QString.

For large file, write to a temporary file before loading. This does not
take care of any relative links in the HTML, which will need further
work.
FIXED-IN: 3.4.5

M  +4    -0    ChangeLog
M  +20   -2    src/reportdialog.cpp
M  +2    -0    src/reportdialog.h

https://invent.kde.org/office/tellico/commit/9894bf2752d2584fdd4a61b52d0a738ba902dbf1</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2319935</commentid>
    <comment_count>3</comment_count>
    <who name="Robby Stephenson">robby</who>
    <bug_when>2024-05-16 01:37:34 +0000</bug_when>
    <thetext>Git commit 03c3f37c2e96fdfbfa7b4a0f6b3b21a6931a4b69 by Robby Stephenson.
Committed on 16/05/2024 at 01:37.
Pushed by rstephenson into branch &apos;master&apos;.

Fix bug with showing long entries

Avoid QWebEngineView limit of 2MB for html content by using
temporary file.
Related: bug 487079
FIXED-IN: 4.0

M  +4    -0    ChangeLog
M  +24   -5    src/entryview.cpp

https://invent.kde.org/office/tellico/-/commit/03c3f37c2e96fdfbfa7b4a0f6b3b21a6931a4b69</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2319936</commentid>
    <comment_count>4</comment_count>
    <who name="Robby Stephenson">robby</who>
    <bug_when>2024-05-16 01:41:35 +0000</bug_when>
    <thetext>Git commit e87e20053644ca51c6ae2b2938203d80952e123c by Robby Stephenson.
Committed on 16/05/2024 at 01:41.
Pushed by rstephenson into branch &apos;3.5&apos;.

Fix bug with showing long entries

Avoid QWebEngineView limit of 2MB for html content by using
temporary file.
Related: bug 487079
FIXED-IN: 4.0

M  +4    -0    ChangeLog
M  +24   -5    src/entryview.cpp

https://invent.kde.org/office/tellico/-/commit/e87e20053644ca51c6ae2b2938203d80952e123c</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>