ticgal / gapp

Bug reporting for Gapp
https://tic.gal/gapp/
4 stars 2 forks source link

can't open the application #10

Closed LaurentSGL closed 4 years ago

LaurentSGL commented 4 years ago

It is impossible for me to open the application after connection i made several trials with other accounts :

i made some trial using the api rest with postman : no problem with my account/credential to access and use the api.

so is there anything special to have on our profile ? we've got severals entities, and a authentication based on ldap i try with a wrong password, and i could not connect , normal i try with the good password, and instead of having the windows with the tickets list , the app close without message

we try on two differents phone, with two different OS, and same result GLPI version : 9.2.1

thanks for your help

PedroTicGal commented 4 years ago

In the next hours we are going to release a new version of GAPP with some tweaks. Please download it and try to reproduce the issue.

Cheers!

LaurentSGL commented 4 years ago

:( same problem with the new version

OscarBeiro commented 4 years ago

Hi @LaurentSGL, Could you confirm what is your Gapp version?

LaurentSGL commented 4 years ago

i use 0.9.9.5-selfservice version, of november 25th

OscarBeiro commented 4 years ago

Hi @LaurentSGL,

It's not possible for us to get every possible GLPI setup. If we don't manage the backend we miss a lot of information.

To solve partially this problem, since 0.9.9.6 we have enabled a Debug mode. To activate it, please long press on the version number. This will open a dialog. If you accept, it will log all actions and send them after the crash.

This could lead us to what is breaking the app.

Regards,

LaurentSGL commented 4 years ago

Hi, i enable debug mode and made several trial, did you receive them ?

OscarBeiro commented 4 years ago

That's strange. We haven't receive any errors from 0.9.9.6. Could you send some screenshots and a detailed step by step? Thanks

LaurentSGL commented 4 years ago

here what i can read sometimes on my phone when the app open :

java.lang.RuntimeException: Unable to start activity ComponentInfo{gal.tic.gapp.selfservice/gal.tic.gapp.vista.MainActivity}: java.lang.ArrayIndexOutOfBoundsException: length=1; index=-1 at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2984) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3119) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1839) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:201) at android.app.ActivityThread.main(ActivityThread.java:6861) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:547) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:873) Caused by: java.lang.ArrayIndexOutOfBoundsException: length=1; index=-1 at java.util.ArrayList.get(ArrayList.java:439) at gal.tic.gapp.vista.MainActivity.inicializarEntitySpinner(MainActivity.java:549) at gal.tic.gapp.vista.MainActivity.onCreate(MainActivity.java:254) at android.app.Activity.performCreate(Activity.java:7232) at android.app.Activity.performCreate(Activity.java:7221) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1272) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2964) ... 11 more

Le mer. 27 nov. 2019 à 12:54, Oscar B. notifications@github.com a écrit :

That's strange. We haven't receive any errors from 0.9.9.6. Could you send some screenshots and a detailed step by step? Thanks

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ticgal/gapp/issues/10?email_source=notifications&email_token=AMKYIGJHQDXBPQGKOKVQBGLQVZNXNA5CNFSM4JQQPBL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFJIOLY#issuecomment-559056687, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMKYIGKSIQY5MJPUU2R75LDQVZNXNANCNFSM4JQQPBLQ .

PedroTicGal commented 4 years ago

Hi Laurent.

We have received all the debug info and detected the issue. It seems that your GLPI API is not returning the information of entities, so the app is unable to point the right entity.

We recommend you to update to a newer version of GLPI (the newer the better) to see if this issue is solved, since you are using a very old version.

GAPP has been designed to work with GLPI 9.3+, so 9.2 version is not officially supported. Older installation may work well but bugs may raise.

LaurentSGL commented 4 years ago

hum..odd.. because it works with the admin account ! and with a previous version of your app i could connect too. we know that we do not use the last version (9.2.1) but it always a rather big job to migrate and change the version ! i will try ..one day ! :) thanks for your assistance sincerely Laurent

Le jeu. 28 nov. 2019 à 11:28, PedroTicGal notifications@github.com a écrit :

Hi Laurent.

We have received all the debug info and detected the issue. It seems that your GLPI API is not returning the information of entities, so the app is unable to point the right entity.

We recommend you to update to a newer version of GLPI (the newer the better) to see if this issue is solved, since you are using a very old version.

GAPP has been designed to work with GLPI 9.3+, so 9.2 version is not officially supported. Older installation may work well but bugs may raise.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/ticgal/gapp/issues/10?email_source=notifications&email_token=AMKYIGIQHZK3FM6WX54OESDQV6MMVA5CNFSM4JQQPBL2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFMFD3A#issuecomment-559436268, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMKYIGJXWNQ4SH3IUQH7D7DQV6MMVANCNFSM4JQQPBLQ .