structureController.sign access issues



  • Hi,

    There seems to be a bug with the new signing feature. Controllers signed by someone else cannot be accessed programmatically.

    Game.getObjectById('controllerId').sign 

    -->

    TypeError: Cannot read property 'username' of undefined
     
     
     
     It also affects JSON.stringify(controller)
    -->
    Script execution has been terminated due to a fatal error: TypeError: Cannot read property 'username' of undefined
     
     
    Noticed this when it caused my scripts to crash when I took a new room.  I like the feature, but can this please be fixed?
     
    Thanks!
    Dewey


  • _.omit(controller, 'sign');


    Has solved my problem, but it should still be resolved.



  • This broke my code as well. This is code breaking, most likely caused by a simple typo like "userane" (as the client shows the "username" field is stored in mongo) and still hasn't been fixed?



  • I ran into this also. I had to unclaim, sign and claim again to not get the script execution. 


  • Dev Team

    Fixed in this commit.