#4971 (Cannot read id card in newavanti)
50 · by Luc Saffre · in Developers · assigned to Sharif Mehedi
Kurzbeschreibung
POST to newavanti.mylino.net/api/avanti/MyClients (an=find_by_beid) answers BadRequest
Kinder
Kommentare
- 3 Jahre, 4 Monate ago von Luc Saffre about #4971 (Cannot read id card in newavanti) : I gave a false alert: it does work. Well done, Sharif!
- 3 Jahre, 4 Monate ago von Luc Saffre about #4971 (Cannot read id card in newavanti) : It still doesn't work. Maybe just some deployment problem. Also the voga1r public demo is still broken as a side effect of this. The JS console says "TypeError: window.App.state.site_data.languages is undefined"
- 3 Jahre, 4 Monate ago von Sharif Mehedi about #4971 (Cannot read id card in newavanti) : I am putting this ticket to ready.
- 3 Jahre, 4 Monate ago von Sharif Mehedi about #4971 (Cannot read id card in newavanti) : I installed the eid_mw and everything seems to work fine, where eidreader.main says: {"eidreader_version": "1.0.6", "success": false, "message": "Could not find any reader with a card inserted"} which is expected since I don't have an eid card reader attached to my computer.
- 3 Jahre, 4 Monate ago von Sharif Mehedi about #4971 (Cannot read id card in newavanti) : react now puts the response from action.preprocessor to ActionRequest's args. I was unable to run the beid.desktop from beid:// scheme. I will try out a bit more on it.
- 3 Jahre, 4 Monate ago von Luc Saffre about #4971 (Cannot read id card in newavanti) : NB [url eidreader.lino-framework.org/] explains how to configure a link handler.
- 3 Jahre, 4 Monate ago von Sharif Mehedi about #4971 (Cannot read id card in newavanti) (1 Antwort) : Plugin().site_js_snippets are now available on react frontend. see: [url gitlab.com/lino-framework/react/-/commit/d60518bbef1c77bc4131d029325bce8e83b29a8c commit on gitlab]. I can't test it because my computer does not know how to handle a url like: beid://127.0.0.1:8000/eid/f6b39c88-81ca-48f4-9fa8-...
- 3 Jahre, 4 Monate ago von Sharif Mehedi Antwort auf Luc Saffre about #4971 (Cannot read id card in newavanti) : Indeed, react doesn't know about the site_js_snippets.
- 3 Jahre, 4 Monate ago von Luc Saffre about #4971 (Cannot read id card in newavanti) : This is already 1 month old and it is urgent now. (Though #4992 is more urgent ;-)
- 3 Jahre, 5 Monate ago von Luc Saffre about #4971 (Cannot read id card in newavanti) : Maybe you just need to implement in React something equivalent to what the extjs renderer does with "for tplname in p.site_js_snippets:"
- 3 Jahre, 5 Monate ago von Luc Saffre about #4971 (Cannot read id card in newavanti) (1 Antwort) : I guess that it is a bug in the react front end. I assigned this to you @8lurry in the hope that maybe it is a quick win for you. Seems that react doesn't yet support actions with a preprocessor. The BaseBeIdReadCardAction uses a "preprocessor" named "Lino.beid_read_card_processor", which is defined in lin...
- 3 Jahre, 5 Monate ago von Luc Saffre about #4971 (Cannot read id card in newavanti) : Reproducible in avanti1 after switching default_ui to react. AjaxExceptionResponse MultiValueDictKeyError: 'uuid' in request POST /api/avanti/MyClients (data: <QueryDict: {'an': ['find_by_beid']}>)
Under ExtJS, the AJAX call of the find_by_beid action has four parameters (an, uuid, timeout and lv) w... - 3 Jahre, 5 Monate ago von Luc Saffre about #4971 (Cannot read id card in newavanti) : Created new Ticket #4971 (Cannot read id card in newavanti).