Opush
  1. Opush
  2. OP-142

Truncation size is not respected when an email needs to be transformed

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Normal Normal
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Rank:
      6606

      Description

      Pre-conditions

      Reproduction steps

      1. As usera with TB, I want to send an email to userb using the HTML only format
      2. I copy/paste an HTML bullet-points list into email's body, then send the email
      1. As userb with an ipad ios8, I choose to use the 5 lines preview
      2. I synchronizes then receive the email

      Current behavior

      1. NOK only the first line is shown is the preview

      Expected behavior

      1. OK 5 lines are shown

      Additional informations

        Issue Links

          Activity

          Hide
          Thomas HILAIRE added a comment -

          More informations:

          Request:

          13:52:53.544 [INFO ] {REQUEST.FULL} [t108/cSync/r44/admin@c.lyon.lan] <?xml version="1.0" encoding="UTF-8"?><Sync>
          <Collections>
          <Collection>
          <SyncKey>02cdb345-3871-4389-8fa2-0a05effc9996</SyncKey>
          <CollectionId>1</CollectionId>
          <GetChanges/>
          <WindowSize>25</WindowSize>
          <Options>
          <FilterType>3</FilterType>
          <MIMETruncation>1</MIMETruncation>
          <MIMESupport>0</MIMESupport>
          <BodyPreference>
          <Type>1</Type>
          <TruncationSize>500</TruncationSize>
          </BodyPreference>
          </Options>
          </Collection>
          </Collections>
          </Sync>
          

          Response:

          13:52:53.785 [INFO ] {REQUEST.FULL} [t108/cSync/r44/admin@c.lyon.lan] <?xml version="1.0" encoding="UTF-8"?><Sync>
          <Collections>
          <Collection>
          <Class>Email</Class>
          <SyncKey>27eda056-6b77-4f68-ad8f-7e753fda1b12</SyncKey>
          <CollectionId>1</CollectionId>
          <Status>1</Status>
          <Commands>
          <Add>
          <ServerId>1:20</ServerId>
          <ApplicationData>
          <Email:To> &lt;admin@c.lyon.lan&gt; </Email:To>
          <Email:From>"admin" &lt;admin@c.lyon.lan&gt; </Email:From>
          <Email:ReplyTo>"admin" &lt;admin@c.lyon.lan&gt; </Email:ReplyTo>
          <Email:Subject>5</Email:Subject>
          <Email:DateReceived>2014-12-01T13:52:50.000Z</Email:DateReceived>
          <Email:DisplayTo> &lt;admin@c.lyon.lan&gt; </Email:DisplayTo>
          <Email:Importance>1</Email:Importance>
          <Email:Read>0</Email:Read>
          <AirSyncBase:Body>
          <AirSyncBase:Type>2</AirSyncBase:Type>
          <AirSyncBase:Truncated>1</AirSyncBase:Truncated>
          <AirSyncBase:EstimatedDataSize>2734</AirSyncBase:EstimatedDataSize>
          <AirSyncBase:Data>Affects Version/s:</AirSyncBase:Data>
          </AirSyncBase:Body>
          <Email:MessageClass>IPM.Note</Email:MessageClass>
          <Email:ContentClass>urn:content-classes:message</Email:ContentClass>
          <Email:InternetCPID>65001</Email:InternetCPID>
          <AirSyncBase:NativeBodyType>2</AirSyncBase:NativeBodyType>
          </ApplicationData>
          </Add>
          </Commands>
          </Collection>
          </Collections>
          </Sync>
          

          eml

          Return-Path: <admin@c.lyon.lan>
          Received: from obm-CentOS7-vagrant (obm-CentOS7-vagrant [127.0.0.1])
          	 by obm-CentOS7-vagrant (Cyrus v2.3.16-Fedora-RPM-2.3.16-6.el6_2.5) with LMTPA;
          	 Mon, 01 Dec 2014 13:52:50 +0000
          X-Sieve: CMU Sieve 2.3
          Received: from [192.168.2.23] (unknown [192.168.2.23])
          	by obm-CentOS7-vagrant (Postfix) with ESMTP id E5B8620BD9
          	for <admin@c.lyon.lan>; Mon,  1 Dec 2014 13:52:50 +0000 (UTC)
          Message-ID: <547C72B2.3040401@c.lyon.lan>
          Date: Mon, 01 Dec 2014 14:52:50 +0100
          From: admin <admin@c.lyon.lan>
          User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20
          MIME-Version: 1.0
          To: admin@c.lyon.lan
          Subject: 5
          Content-Type: text/html; charset=ISO-8859-1
          Content-Transfer-Encoding: 7bit
          
          <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
          <html>
            <head>
          
              <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
            </head>
            <body text="#000000" bgcolor="#ffffff">
              <ul id="issuedetails" class="property-list two-cols">
                <li class="item">
                  <div class="wrap"> <strong class="name">Affects Version/s:</strong>
                    <span title="Click to edit" id="versions-val" class="value
                      editable-field inactive"> <span style="height: auto;"
                        class="shorten" id="versions-field"> <span title="3.0.1 ">3.0.1</span>
                      </span> <span class="overlay-icon icon icon-edit-sml"></span></span>
                  </div>
                </li>
                <li class="item item-right">
                  <div class="wrap"> <strong class="name">Fix Version/s:</strong>
                    <span title="Click to edit" id="fixfor-val" class="value
                      editable-field inactive"> <span style="height: auto;"
                        class="shorten" id="fixVersions-field"> <a
                          href="http://ci-obm.linagora.com/jira/browse/OP/fixforversion/12502"
                          title="3.0.4 ">3.0.4</a> </span> <span
                        class="overlay-icon icon icon-edit-sml"></span></span> </div>
                </li>
                <li class="item full-width">
                  <div class="wrap" id="wrap-labels"> <strong class="name">Labels:</strong>
                    <div title="Click to edit" class="labels-wrap value
                      editable-field inactive"> <span class="labels"
                        id="labels-17493-value">None</span> <span
                        class="overlay-icon icon icon-edit-sml"></span></div>
                  </div>
                </li>
                <li class="item full-width">
                  <div class="wrap"> <strong class="name">Environment:</strong>
                    <div title="Click to edit" id="environment-val" class="value
                      editable-field inactive">
                      <p>OBM 2.4.2.9</p>
                      <span class="overlay-icon icon icon-edit-sml"></span></div>
                  </div>
                </li>
              </ul>
              <div id="customfieldmodule">
                <div class="aui-tabs horizontal-tabs" id="customfield-tabs">
                  <div id="customfield-panel-1" class="tabs-pane active-pane">
                    <ul class="property-list">
                      <li id="rowForcustomfield_10630" class="item">
                        <div class="wrap"> <strong title="Rank" class="name">Rank:</strong>
                          <div id="customfield_10630-val" class="value
                            type-gh-global-rank" data-fieldtype="gh-global-rank"
                            data-fieldtypecompletekey="com.pyxis.greenhopper.jira:gh-global-rank">
                            5546 </div>
                        </div>
                      </li>
                    </ul>
                  </div>
                </div>
              </div>
            </body>
          
          </html>
          
          Show
          Thomas HILAIRE added a comment - More informations: Request: 13:52:53.544 [INFO ] {REQUEST.FULL} [t108/cSync/r44/admin@c.lyon.lan] <?xml version= "1.0" encoding= "UTF-8" ?><Sync> <Collections> <Collection> <SyncKey>02cdb345-3871-4389-8fa2-0a05effc9996</SyncKey> <CollectionId>1</CollectionId> <GetChanges/> <WindowSize>25</WindowSize> <Options> <FilterType>3</FilterType> <MIMETruncation>1</MIMETruncation> <MIMESupport>0</MIMESupport> <BodyPreference> <Type>1</Type> <TruncationSize>500</TruncationSize> </BodyPreference> </Options> </Collection> </Collections> </Sync> Response: 13:52:53.785 [INFO ] {REQUEST.FULL} [t108/cSync/r44/admin@c.lyon.lan] <?xml version= "1.0" encoding= "UTF-8" ?><Sync> <Collections> <Collection> < Class >Email</ Class > <SyncKey>27eda056-6b77-4f68-ad8f-7e753fda1b12</SyncKey> <CollectionId>1</CollectionId> <Status>1</Status> <Commands> <Add> <ServerId>1:20</ServerId> <ApplicationData> <Email:To> &lt;admin@c.lyon.lan&gt; </Email:To> <Email:From> "admin" &lt;admin@c.lyon.lan&gt; </Email:From> <Email:ReplyTo> "admin" &lt;admin@c.lyon.lan&gt; </Email:ReplyTo> <Email:Subject>5</Email:Subject> <Email:DateReceived>2014-12-01T13:52:50.000Z</Email:DateReceived> <Email:DisplayTo> &lt;admin@c.lyon.lan&gt; </Email:DisplayTo> <Email:Importance>1</Email:Importance> <Email:Read>0</Email:Read> <AirSyncBase:Body> <AirSyncBase:Type>2</AirSyncBase:Type> <AirSyncBase:Truncated>1</AirSyncBase:Truncated> <AirSyncBase:EstimatedDataSize>2734</AirSyncBase:EstimatedDataSize> <AirSyncBase:Data>Affects Version/s:</AirSyncBase:Data> </AirSyncBase:Body> <Email:MessageClass>IPM.Note</Email:MessageClass> <Email:ContentClass>urn:content-classes:message</Email:ContentClass> <Email:InternetCPID>65001</Email:InternetCPID> <AirSyncBase:NativeBodyType>2</AirSyncBase:NativeBodyType> </ApplicationData> </Add> </Commands> </Collection> </Collections> </Sync> eml Return-Path: <admin@c.lyon.lan> Received: from obm-CentOS7-vagrant (obm-CentOS7-vagrant [127.0.0.1]) by obm-CentOS7-vagrant (Cyrus v2.3.16-Fedora-RPM-2.3.16-6.el6_2.5) with LMTPA; Mon, 01 Dec 2014 13:52:50 +0000 X-Sieve: CMU Sieve 2.3 Received: from [192.168.2.23] (unknown [192.168.2.23]) by obm-CentOS7-vagrant (Postfix) with ESMTP id E5B8620BD9 for <admin@c.lyon.lan>; Mon, 1 Dec 2014 13:52:50 +0000 (UTC) Message-ID: <547C72B2.3040401@c.lyon.lan> Date: Mon, 01 Dec 2014 14:52:50 +0100 From: admin <admin@c.lyon.lan> User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20 MIME-Version: 1.0 To: admin@c.lyon.lan Subject: 5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit <!DOCTYPE HTML PUBLIC "- //W3C//DTD HTML 4.01 Transitional//EN" > <html> <head> <meta http-equiv= "content-type" content= "text/html; charset=ISO-8859-1" > </head> <body text= "#000000" bgcolor= "#ffffff" > <ul id= "issuedetails" class= "property-list two-cols" > <li class= "item" > <div class= "wrap" > <strong class= "name" >Affects Version/s:</strong> <span title= "Click to edit" id= "versions-val" class="value editable-field inactive "> <span style=" height: auto;" class= "shorten" id= "versions-field" > <span title= "3.0.1 " >3.0.1</span> </span> <span class= "overlay-icon icon icon-edit-sml" ></span></span> </div> </li> <li class= "item item-right" > <div class= "wrap" > <strong class= "name" >Fix Version/s:</strong> <span title= "Click to edit" id= "fixfor-val" class="value editable-field inactive "> <span style=" height: auto;" class= "shorten" id= "fixVersions-field" > <a href= "http: //ci-obm.linagora.com/jira/browse/OP/fixforversion/12502" title= "3.0.4 " >3.0.4</a> </span> <span class= "overlay-icon icon icon-edit-sml" ></span></span> </div> </li> <li class= "item full-width" > <div class= "wrap" id= "wrap-labels" > <strong class= "name" >Labels:</strong> <div title= "Click to edit" class="labels-wrap value editable-field inactive "> <span class=" labels" id= "labels-17493-value" >None</span> <span class= "overlay-icon icon icon-edit-sml" ></span></div> </div> </li> <li class= "item full-width" > <div class= "wrap" > <strong class= "name" >Environment:</strong> <div title= "Click to edit" id= "environment-val" class="value editable-field inactive"> <p>OBM 2.4.2.9</p> <span class= "overlay-icon icon icon-edit-sml" ></span></div> </div> </li> </ul> <div id= "customfieldmodule" > <div class= "aui-tabs horizontal-tabs" id= "customfield-tabs" > <div id= "customfield-panel-1" class= "tabs-pane active-pane" > <ul class= "property-list" > <li id= "rowForcustomfield_10630" class= "item" > <div class= "wrap" > <strong title= "Rank" class= "name" >Rank:</strong> <div id= "customfield_10630-val" class="value type-gh-global-rank " data-fieldtype=" gh-global-rank" data-fieldtypecompletekey= "com.pyxis.greenhopper.jira:gh-global-rank" > 5546 </div> </div> </li> </ul> </div> </div> </div> </body> </html>

            People

            • Assignee:
              Matthieu EXT_BAECHLER
              Reporter:
              Thomas HILAIRE
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: