Page MenuHomePhabricator

PhabricatorApplicationTransactionNoEffectException when saving Blocked tasks without changing them
Closed, ResolvedPublic

Description

Steps to reproduce:

  1. Click Edit Blocking Tasks
  2. Click Save Blocking Tasks

Result:

Unhandled Exception ("PhabricatorApplicationTransactionNoEffectException")
Transactions have no effect:

  • Edges already exist; transaction has no effect.

Expected result:
None.

Event Timeline

valhallasw raised the priority of this task from to Needs Triage.
valhallasw updated the task description. (Show Details)
valhallasw added a project: Maniphest.
valhallasw added a subscriber: valhallasw.
epriestley added a subscriber: epriestley.

The fix for this is probably to add ->setContinueOnNoEffect(true) to the $txn_editor in PhabricatorSearchAttachController:

        $txn_editor = $object->getApplicationTransactionEditor()
          ->setActor($user)
          ->setContentSourceFromRequest($request)
+         ->setContinueOnNoEffect(true)
          ->setContinueOnMissingFields(true);

If that doesn't work, this might be messy.