Skip to content

NetworkVariable dictionary write permission and duplicate key issues #3070

@ezoray

Description

@ezoray

Description

  1. The network variable dictionary ignores Owner/Server write permission allowing the non-owner/client to write to the dictionary (possibly its own copy but I'm not sure on that).
  2. If a client connects while entries are being added to the dictionary a duplicate key error is reported in the client. Something similar happens on change of ownership.

Reproduce Steps

The first issue can be replicated running the code here.
To see the second issue run the code in the attached unitypackage.

Actual Outcome

  1. Client can write to the dictionary when it doesn't have permission.
  2. On connection the client reports the error: ArgumentException: An item with the same key has already been added. Key: n

Environment

Metadata

Metadata

Labels

priority:highThis issue has high priority and we are focusing to resolve itstat:importedStatus - Issue is tracked internally at Unitytype:bugBug Report

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions