Projects tigase _server tigase-http-api Issues #157
[FCM] add FCM provider private key validation when uploading it via rest (#157)
wojciech.kapcia@tigase.net opened 3 months ago

Currently uploading FCM service file via web-admin doesn't correctly inform about the error and only reloads page even though correct error is returned:

<iq to="admin@(…)/atlantiscity" id="7e054aeb-01e0-426a-a931-d0a382efd7da" type="error" from="push.(…)">
<command xmlns="http://jabber.org/protocol/commands" sessionid="3fab5a16-0c72-4720-977b-fa8d268e44a1" node="set-fcm-service-account">
<x xmlns="jabber:x:data" type="submit">
<field type="list-single" var="provider">
<value>fcm-http-v1</value>
</field>
<field type="text-multi" var="service-account">
<value>{</value>
<value>    "project_info": {</value>
…
<value>    "configuration_version": "1"</value>
<value>} </value>
</field>
</x>
</command>
<error code="400" type="modify">
<bad-request xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
<text xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" xml:lang="en">Service account is not a valid JSON service account file content!</text>
</error>
</iq>

Only blank page is shown in web-admin

Captura de pantalla 2024-09-19 a las 12.49.00.png

wojciech.kapcia@tigase.net added to iteration "tigase-server-8.5.0" 3 months ago
wojciech.kapcia@tigase.net changed title 3 months ago
Previous Value Current Value
[fcm] add FCM provider private key validation when uploading it via rest
[FCM] add FCM provider private key validation when uploading it via rest
wojciech.kapcia@tigase.net moved 3 months ago
Previous Value Current Value
tigase/_server/tigase-push
tigase/tigase-http-api
wojciech.kapcia@tigase.net moved 3 months ago
Previous Value Current Value
tigase/tigase-http-api
tigase/_server/tigase-http-api
issue 1 of 1
Type
Bug
Priority
Normal
Assignee
Version
none
Sprints
n/a
Customer
n/a
Issue Votes (0)
Watchers (3)
Reference
tigase/_server/tigase-http-api#157
Please wait...
Page is in error, reload to recover