{"record":{"id":"eaa31b63218e2e95","repo":"apache/superset","slug":"you-don-t-have-permission-to-modify-the-value-eaa31b","errorCode":null,"errorMessage":"You don't have permission to modify the value.","messagePattern":"You don't have permission to modify the value\\.","errorType":"exception","errorClass":"TemporaryCacheAccessDeniedError","httpStatus":403,"severity":"error","filePath":"superset/commands/explore/form_data/update.py","lineNumber":63,"sourceCode":"    ):\n        self._cmd_params = cmd_params\n\n    def run(self) -> Optional[str]:\n        self.validate()\n        try:\n            datasource_id = self._cmd_params.datasource_id\n            chart_id = self._cmd_params.chart_id\n            datasource_type = self._cmd_params.datasource_type\n            key = self._cmd_params.key\n            form_data = self._cmd_params.form_data\n            check_access(datasource_id, chart_id, datasource_type)\n            state: TemporaryExploreState = cache_manager.explore_form_data_cache.get(\n                key\n            )\n            owner = get_user_id()\n            if state and form_data:\n                if state[\"owner\"] != owner:\n                    raise TemporaryCacheAccessDeniedError()\n\n                # Generate a new key if tab_id changes or equals 0\n                tab_id = self._cmd_params.tab_id\n                contextual_key = cache_key(\n                    session.get(\"_id\"), tab_id, datasource_id, chart_id, datasource_type\n                )\n                key = cache_manager.explore_form_data_cache.get(contextual_key)\n                if not key or not tab_id:\n                    key = random_key()\n                    cache_manager.explore_form_data_cache.set(contextual_key, key)\n\n                new_state: TemporaryExploreState = {\n                    \"owner\": owner,\n                    \"datasource_id\": datasource_id,\n                    \"datasource_type\": DatasourceType(datasource_type),\n                    \"chart_id\": chart_id,\n                    \"form_data\": form_data,\n                }","sourceCodeStart":45,"sourceCodeEnd":81,"githubUrl":"https://github.com/apache/superset/blob/f4587218dd19d046c3e4d00063e7d27f8a2ed354/superset/commands/explore/form_data/update.py#L45-L81","documentation":"Error \"You don't have permission to modify the value.\" thrown in apache/superset.","triggerScenarios":"PUT /api/v1/explore/form_data/<key> is called by a user who is not the owner of the stored form_data payload.","commonSituations":"Updating Explore form_data key-value state via the API; the current user lacks ownership/admin rights over the stored value.","solutions":["Verify the current user owns the form_data key or has the ExploreFormDataRestApi permission to modify it.","Create a new form_data key with POST /api/v1/explore/form_data instead of updating one owned by another user."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"f4587218dd19d046c3e4d00063e7d27f8a2ed354","analyzedAt":"2026-08-14T22:39:27.425Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}