• Categories
  • Recent
  • Tags
  • Popular
  • Solved
  • Unsolved
  • Users
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Darkly)
  • No Skin
Collapse
brainCloud Forums

bridge.getCustomEntityServiceProxy()

Scheduled Pinned Locked Moved Unsolved Cloud Code
5 Posts 2 Posters 341 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kinco.h
    wrote on last edited by kinco.h
    #1

    I think when we use bridge.getCustomEntityServiceProxy() to get customEntityProxy and then we do customEntityProxy.readSingleton("PlayerData_Main") to get user data, we will get another person's data, which results in me accessing another person's data, What are the possible causes of this problem?

    our code like this
    083a85fa-7745-4608-806b-c7d144e4f99b-image.png

    1 Reply Last reply
    0
  • Paul WinterhalderP Offline
    Paul WinterhalderP Offline
    Paul Winterhalder brainCloudAdmin
    wrote on last edited by
    #2

    Are you grabbing the proxy for another user?

    The technique is described here - https://help.getbraincloud.com/en/articles/3631086-how-do-impersonate-a-user-using-the-braincloud-api -- and is commonly used in multiplayer scenarios when attempting to update the stats of other players after a match.

    Could that be what is happening?

    (Though admittedly it doesn't look like such from your code).

    If you message into our support chat system with your appId and profileId (and timeframe for when this last happened) we can check our loggs and see if we can figure out what is happening.

    1 Reply Last reply
    0
  • K Offline
    K Offline
    kinco.h
    wrote on last edited by
    #3

    Thanks for your reply, I will confirm the issue.

    1 Reply Last reply
    0
  • K Offline
    K Offline
    kinco.h
    wrote on last edited by kinco.h
    #4

    @Paul-Winterhalder
    appId 14402
    profileId 14b8cd98-12fe-4afe-8039-085936a42faa
    time 2024-11-14 22:21:16+08:00
    thanks for your help

    1 Reply Last reply
    0
  • Paul WinterhalderP Offline
    Paul WinterhalderP Offline
    Paul Winterhalder brainCloudAdmin
    wrote on last edited by
    #5

    Hi @kinco-h - I assume (hope) you got the info you needed from our support folks?

    Hint - you access chat support by clicking on the "Ask Support" button in the top right-hand corner of the Design Portal...

    2024-12-04_09-07-57.png

    1 Reply Last reply
    0

  • Login

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Solved
  • Unsolved
  • Users