kuzzleio / kuzzle-admin-console

A SPA to administrate your Kuzzle: index and collection management, document creation, realtime subscription and permissions management
http://console.kuzzle.io
Apache License 2.0
61 stars 25 forks source link

Display users edit page #184

Closed AnthonySendra closed 7 years ago

AnthonySendra commented 7 years ago

Linked to https://github.com/kuzzleio/kuzzle/issues/617

xbill82 commented 7 years ago

I can actually see the Edit page for Profiles and Roles (excepted that the Update button is broken, as stated in #197 ) but I confirm that I have a nasty error when I try to edit a user:

selection_005

Unhandled rejection Error: Cannot operate on Kuzzle internal index "%kuzzle"
    at BadRequestError.KuzzleError (/var/app/node_modules/kuzzle-common-objects/lib/errors/kuzzleError.js:17:19)
    at new BadRequestError (/var/app/node_modules/kuzzle-common-objects/lib/errors/badRequestError.js:6:15)
    at getElasticsearchRequest (/var/app/lib/services/elasticsearch.js:981:13)
    at ElasticSearch.elasticsearchGetMapping [as getMapping] (/var/app/lib/services/elasticsearch.js:730:21)
    at CollectionController.collectionGetMapping [as getMapping] (/var/app/lib/api/controllers/collectionController.js:56:19)
    at kuzzle.pluginsManager.trigger.then.newRequest (/var/app/lib/api/controllers/funnelController.js:260:80)
    at FunnelController.processRequest (/var/app/lib/api/controllers/funnelController.js:257:8)
    at checkRights.then (/var/app/lib/api/controllers/funnelController.js:95:26)
    at runCallback (timers.js:637:20)
    at tryOnImmediate (timers.js:610:5)
    at processImmediate [as _immediateCallback] (timers.js:582:5)
    at FunnelController.funnelExecute [as execute] (/var/app/lib/api/controllers/funnelController.js:95:10)
    at KuzzleProxy.onRequest (/var/app/lib/api/core/entryPoints/kuzzleProxy.js:47:22)
    at handlers.(anonymous function).forEach.cb (/var/app/lib/services/broker/wsBrokerClient.js:146:45)
    at Array.forEach (native)
    at WebSocket.client.socket.on.msg (/var/app/lib/services/broker/wsBrokerClient.js:146:31)
    at emitTwo (events.js:106:13)
    at WebSocket.emit (events.js:191:7)
    at Receiver.ontext (/var/app/node_modules/ws/lib/WebSocket.js:841:10)
    at /var/app/node_modules/ws/lib/Receiver.js:536:18
    at Receiver.applyExtensions (/var/app/node_modules/ws/lib/Receiver.js:371:5)
    at /var/app/node_modules/ws/lib/Receiver.js:508:14
    at Receiver.flush (/var/app/node_modules/ws/lib/Receiver.js:347:3)
    at Receiver.finish (/var/app/node_modules/ws/lib/Receiver.js:541:12)
    at Receiver.<anonymous> (/var/app/node_modules/ws/lib/Receiver.js:499:31)
    at Receiver.add (/var/app/node_modules/ws/lib/Receiver.js:103:24)
    at Socket.realHandler (/var/app/node_modules/ws/lib/WebSocket.js:825:20)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:176:18)
AnthonySendra commented 7 years ago

Missing part about getUserMapping