Bug 472916 - Importing of Deutschlandticket failed
Summary: Importing of Deutschlandticket failed
Status: RESOLVED FIXED
Alias: None
Product: KDE Itinerary
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Volker Krause
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-02 11:15 UTC by Gerion
Modified: 2023-09-04 15:49 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gerion 2023-08-02 11:15:10 UTC
SUMMARY

I tried to import my Deutschlandticket into Itinerary to get rid of the proprietary app of my local transport provider (the GVH in Hannover).
However, the import failed. Probably, the problem has multiple aspects.


STEPS TO REPRODUCE
1. Open the GVH app, show the Deutschlandticket and take a screenshot.
2. Open Itinerary and go to "Importieren". Choose the screenshot.

OBSERVED RESULT
The app reports: "Nothing imported".

EXPECTED RESULT
The app shows the Deutschlandticket under "Pässe".


SOFTWARE/OS VERSIONS
Itinerary version: 23.11.70
Android version: 13

ADDITIONAL INFORMATION

I was not sure what exactly failed: Is Itinerary not able to import QR-Codes from pictures or is this specific Deutschlandticket not recognized?

Therefore I tried to import the Deutschlandticket from "deutschlandticket.de"/Transdev (scanning with the integrated barcode scanner) and this works (many thanks for that!).
I also send the screenshot (of the GVH app) to my laptop, displayed it and then tried to scan the code with "Barcode scannen" from the Laptop screen. This also reports "Nothing imported". Therefore, I think that the Deutschlandticket from GVH is unsupported.

I want to kindly suggest:
- If recognizing barcodes in imported pictures is possible in principal and just the barcode interpretation failed, it would be helpful to report that: "Barcode recognized but unsupported by Itinerary".
- If the integrated barcode scanner recognizes a barcode this is shown visually but really short. Also here an error message: "Barcode recognized but unsupported" would be helpful.

If you need a sample of the GVH-Deutschlandticket, I can send it to you in private.
Comment 1 Volker Krause 2023-08-03 15:33:45 UTC
Importing from a screenshot should work in the version you have, and given manual scanning also fails that indeed sounds like we can't handle the GVH variant yet. If you want you can send it to me at vkrause@kde.org so I can see if we can fix that.

And yes, the user feedback especially when things don't work as they should here definitely could use some improvements.
Comment 2 Volker Krause 2023-09-04 15:49:26 UTC
Git commit bd60532af48ac661d962de7fba8fd7201422c97e by Volker Krause.
Committed on 04/09/2023 at 17:27.
Pushed by vkrause into branch 'release/23.08'.

Fall back to the second RCT2 title line if the first one is empty

Fixes importing GVH Deutschlandtickets.
FIXED-IN: 23.08.1

M  +2    -1    src/lib/uic9183/rct2ticket.cpp

https://invent.kde.org/pim/kitinerary/-/commit/bd60532af48ac661d962de7fba8fd7201422c97e