tutao / tutanota

Tuta is an email service with a strong focus on security and privacy that lets you encrypt emails, contacts and calendar entries on all your devices.
https://tuta.com
GNU General Public License v3.0
6.01k stars 518 forks source link

Unknown extension .cmap #7160

Closed jomapp closed 1 month ago

jomapp commented 3 months ago

Bug in mobile app

Describe the bug When opening a PDF invoice on android (and probably also iOS), the app crashes as the ".cmap" extension is unknown. ".cmap" files are used to allow special font rendering inside the PDF invoices.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'payment'
  2. Click on 'show'
  3. Click on 'download'
  4. See that app crashes

Expected behavior Downloading a PDF invoice is successful.

Smartphone (please complete the following information):

Additional context

type: crash
osVersion: google/cheetah/cheetah:14/AP2A.240605.024/2024062700:user/release-keys
package: de.tutao.tutanota:396356
process: de.tutao.tutanota
processUptime: 14054 + 371 ms
installer: com.android.packageinstaller

java.lang.IllegalStateException: Unknown extension cmap for url https://assets.tutanota.com/pdf/identity_h.cmap
at de.tutao.tutanota.MainActivity.getMimeTypeForUrl(Unknown Source:142)
at de.tutao.tutanota.MainActivity.access$getMimeTypeForUrl(Unknown Source:0)
at de.tutao.tutanota.MainActivity$onCreate$2.shouldInterceptRequest(Unknown Source:216)
at WV.r5.a(chromium-TrichromeWebView6432.apk-stable-647812433:83)
at org.chromium.android_webview.AwContentsBackgroundThreadClient.shouldInterceptRequestFromNative(chromium-TrichromeWebView6432.apk-stable-647812433:15)
rezbyte commented 1 month ago

See here.