Uploaded image for project: 'Syncope'
  1. Syncope
  2. SYNCOPE-417

Users are made active when updating in NoOpWorkflowAdapter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.1.3
    • 1.1.4, 1.2.0-M1
    • core
    • None

    Description

      When using the NoOpWorkflow adapter a user is always set to active when an update is done, even if the user is suspended. This is undesirable, I think a user should stay in the state it is.

      This can be fixed by changing this line (117/118 of NoOpWorkflowAdapter.java):

      return new WorkflowResult<Map.Entry<Long, Boolean>>(
      new AbstractMap.SimpleEntry<Long, Boolean>(updated.getId(), true), propByRes, "update");
      into this:

      return new WorkflowResult<Map.Entry<Long, Boolean>>(
      new AbstractMap.SimpleEntry<Long, Boolean>(updated.getId(), !user.isSuspended()), propByRes, "update");

      Attachments

        1. NoOpUserWorkflowAdapter.java.patch
          0.6 kB
          Jesse van Bekkum

        Activity

          People

            ilgrosso Francesco Chicchiriccò
            jessevanbekkum Jesse van Bekkum
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: