Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Solved
  • Unsolved
  • Users
Skins
  • Light
  • Brite
  • 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
  1. Home
  2. Cloud Code
  3. bridge.getCustomEntityServiceProxy()

bridge.getCustomEntityServiceProxy()

Scheduled Pinned Locked Moved Unsolved Cloud Code
5 Posts 2 Posters 1.5k Views 2 Watching
  • 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 Online
      Paul WinterhalderP Online
      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 Online
            Paul WinterhalderP Online
            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

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

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