Skip to content

Don't pass request environment to renderer when calling sync actions #214

Open
@ajb

Description

@ajb

Problem

  1. Sync partials should not be able to access current_user, params, etc
  2. When sync_update (or sync_new) are called from inside of a request environment, they can access the variables inside of that environment
  3. This can lead to silent errors, or errors that occur only in production when background jobs are enabled. (Silent error when current_user is called without refetch: true #190 might be an example of one of these)

Solution

  • Disable access to request environment when calling sync actions
  • Disable access to request environment when rendering sync partials, always? (This might be a breaking change...)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions