[INACTIVE] Workflow is not saved

I’m submitting a…

  • [ ] Regression (a behavior that stopped working in a new release)
  • [ X] Bug report
  • [ ] Performance issue
  • [ ] Documentation issue or request

Current behavior

After creating a role, I went to the workflow section creating one. For each state I have assigned a role. Eg Draft to Published -> Editor, Draft -> Ready (new state) -> Co-Editor (new Role).
After completing the workflow I saved and waited. At refresh all states were cleared.
I subsequently recompiled the workflow, and saved several steps. Also waited a few minutes, switched to another functionality returned to the workflow is white.
I checked the Mongo App state table and there was no trace of the workflow configurations. For testing I modified the json by inserting the workflow directly on mongo, but there is no trace of the configuration in the interface.

Expected behavior

The workflow should be visible and saved

Minimal reproduction of the problem

Environment

  • [ X] Self hosted with docker
  • [ ] Self hosted with IIS
  • [ ] Self hosted with other version
  • [ X] Cloud version

Version: [VERSION]

Browser:

  • [X ] Chrome (desktop)
  • [ ] Chrome (Android)
  • [ ] Chrome (iOS)
  • [X ] Firefox
  • [ ] Safari (desktop)
  • [ ] Safari (iOS)
  • [ ] IE
  • [ ] Edge

Others:

array (
  'Version' => new MongoInt64(199),
  'Doc' => 
  array (
    'name' => 'cms-portale-ras',
    'label' => 'CMS RAS',
    'description' => 'Portale istituzionale della Regione Sardegna',
    'roles' => 
    array (
      'Co-Editor' => 
      array (
        0 => 'contents.*.read',
        1 => 'contents.*.create',
        2 => 'assets.*',
        3 => 'contents.*.version.create',
        4 => 'contents.*.update',
      ),
      'EditorSanita' => 
      array (
        0 => 'contents.bandosanita.*',
        1 => 'assets.read',
        2 => 'assets.create',
        3 => 'assets.upload',
        4 => 'assets.update',
        5 => 'contents.notizia.read',
        6 => 'contents.notizia.create',
        7 => 'contents.notizia.update',
        8 => 'contents.notizia.version.create',
        9 => 'contents.evento.read',
        10 => 'contents.evento.create',
        11 => 'contents.evento.update',
        12 => 'contents.evento.version.create',
      ),
      'CoEditorSanita' => 
      array (
        0 => 'contents.notizia.read',
        1 => 'contents.notizia.create',
        2 => 'contents.notizia.version.create',
        3 => 'contents.notizia.update',
        4 => 'assets.read',
        5 => 'assets.create',
        6 => 'assets.upload',
        7 => 'contents.evento.read',
        8 => 'contents.evento.create',
        9 => 'contents.evento.update',
        10 => 'contents.evento.version.create',
      ),
    ),
    'image' => 
    array (
      'mimeType' => 'image/png',
      'etag' => '56860a9853134122bea6fa7518d65fd7',
    ),
    'clients' => 
    array (
      'default' => 
      array (
        'name' => 'default',
        'secret' => 'lafy9f9cc5sg6xjdnrrvxou86sv4bvpydiudh0yhpsox',
        'role' => 'Reader',
      ),
    ),
    'patterns' => 
    array (
      'd7644fc0-0868-4df0-8ba4-8f1d843f805b' => 
      array (
        'name' => 'Email',
        'pattern' => '^[a-zA-Z0-9.!#$%&’*+\\/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:.[a-zA-Z0-9-]+)*$',
      ),
      '90ea4b2d-7b21-47f3-9212-0bbd6491c9c2' => 
      array (
        'name' => 'Phone',
        'pattern' => '^\\(*\\+*[1-9]{0,3}\\)*-*[1-9]{0,3}[-. /]*\\(*[2-9]\\d{2}\\)*[-. /]*\\d{3}[-. /]*\\d{4} *e*x*t*\\.* *\\d{0,4}$',
      ),
      'b7cc24a0-9b33-4a39-b194-133c503d6f4c' => 
      array (
        'name' => 'Slug',
        'pattern' => '^[a-z0-9]+(\\-[a-z0-9]+)*$',
      ),
      'ad78225d-956d-4ac5-8a85-85843e9a4f44' => 
      array (
        'name' => 'Url',
        'pattern' => '^(?:http(s)?:\\/\\/)?[\\w.-]+(?:\\.[\\w\\.-]+)+[\\w\\-\\._~:\\/?#%[\\]@!\\$&\'\\(\\)\\*\\+,;=.]+$',
      ),
    ),
    'contributors' => 
    array (
      '5e985e79ba88eb000121b89b' => 'Owner',
      '5ea04b7bba88eb000121b9a4' => 'Owner',
      '5ea06db7ba88eb000121bb96' => 'Co-Editor',
      '5ea946451a73b900017868e4' => 'Editor',
      '5ea959881a73b90001786bef' => 'Co-Editor',
    ),
    'languagesConfig' => 
    array (
      'languages' => 
      array (
        'en' => 
        array (
          'fallback' => 
          array (
          ),
          'isOptional' => false,
        ),
        'it' => 
        array (
          'fallback' => 
          array (
          ),
          'isOptional' => false,
        ),
      ),
      'master' => 'it',
    ),
    'workflows' => 
    array (
      '59fdc05e-7e0b-4ebf-bac8-6d9adafbb644' => 
      array (
        'steps' => 
        array (
          'Archived' => 
          array (
            'transitions' => 
            array (
              'Published' => 
              array (
				 0 => 'Editor',
				 1 => 'EditorSanita',
              ),
            ),
            'color' => '#eb3142',
            'noUpdate' => false,
          ),
          'Draft' => 
          array (
            'transitions' => 
            array (
              'Published' => 
              array (
                'roles' => 
                array (
                  0 => 'Editor',
				  1 => 'EditorSanita',
                ),
              ),
              'Ready' => 
              array (
                'expression' => '',
                'roles' => 
                array (
                  0 => 'Co-Editor',
				  1 => 'Co-EditorSanita'
                ),
              ),
            ),
            'color' => '#8091a5',
            'noUpdate' => false,
          ),
          'Published' => 
          array (
            'transitions' => 
            array (
              'Archived' => 
              array (
				 0 => 'Editor',
				 1 => 'EditorSanita',
              ),
              'Draft' => 
              array (
              ),
            ),
            'color' => '#4bb958',
            'noUpdate' => false,
          ),
          'Ready' => 
          array (
            'transitions' => 
            array (
              'Published' => 
              array (
                'expression' => '',
                'roles' => 
                array (
                  0 => 'Editor',
                  1 => 'EditorSanita',
                ),
              ),
              'Reject' => 
              array (
                'expression' => '',
                'roles' => 
                array (
                  0 => 'Editor',
				  1 => 'EditorSanita',
                ),
              ),
            ),
            'color' => '#17a3e6',
            'noUpdate' => false,
            'noUpdateRules' => 
            array (
            ),
          ),
          'Reject' => 
          array (
            'transitions' => 
            array (
              'Ready' => 
              array (
                'expression' => '',
                'roles' => 
                array (
                  0 => 'Co-Editor',
				  1 => 'Co-EditorSanita'
                ),
              ),
            ),
            'color' => '#c117e6',
            'noUpdate' => false,
          ),
        ),
        'schemaIds' => 
        array (
          0 => '5a9eef76-4089-4f53-8493-53ad6b139f07',
          1 => '127532de-39ec-49d0-b99b-cc91eaaf10ab',
          2 => '5a596e35-8cea-478b-91a0-b105169c68ae',
          3 => 'e24f4b27-3498-4d4a-8f10-b724c593c547',
          4 => '84cbdfae-77d2-4096-bf05-be0068d7e983',
          5 => '58be4c09-80d9-4403-b5cf-a93d297c3de7',
          6 => '239d338b-ae56-467a-ab8e-c1c89ea48399',
          7 => '797ccb37-b10c-402f-a620-6feb5865ad40',
        ),
        'initial' => 'Draft',
        'name' => 'Workflow Base',
      ),
      '9e26d2d2-11c8-4696-85cd-adb6b5bead74' => 
      array (
        'steps' => 
        array (
          'Archived' => 
          array (
            'transitions' => 
            array (
              'Published' => 
              array (
              ),
            ),
            'color' => '#eb3142',
            'noUpdate' => false,
          ),
          'Draft' => 
          array (
            'transitions' => 
            array (
              'Published' => 
              array (
				0 => 'EditorSanita',
              ),
              'Ready' => 
              array (
              ),
            ),
            'color' => '#8091a5',
            'noUpdate' => false,
          ),
          'Published' => 
          array (
            'transitions' => 
            array (
              'Archived' => 
              array (
			  0 => 'EditorSanita',
              ),
            ),
            'color' => '#4bb958',
            'noUpdate' => false,
          ),
          'Ready' => 
          array (
            'transitions' => 
            array (
              'Published' => 
              array (
				 0 => 'EditorSanita',
              ),
              'Reject' => 
              array (
				 0 => 'EditorSanita',
              ),
            ),
            'color' => '#a217e6',
            'noUpdate' => false,
          ),
          'Reject' => 
          array (
            'transitions' => 
            array (
              'Ready' => 
              array (
				0 => 'Co-EditorSanita'
              ),
            ),
            'color' => '#b417e6',
            'noUpdate' => false,
          ),
        ),
        'schemaIds' => 
        array (
          0 => 'fe384a9c-fedd-4f7f-92e2-61b0ac8235e6',
        ),
        'initial' => 'Ready',
        'name' => 'Workflow Sanità',
      ),
    ),
    'isArchived' => false,
    'id' => 'da3c7a1f-660f-4cb4-92ef-e713dfbe9544',
    'createdBy' => 'subject:5e985e79ba88eb000121b89b',
    'lastModifiedBy' => 'subject:5e985e79ba88eb000121b89b',
    'created' => '2020-04-16T14:30:35Z',
    'lastModified' => '2020-05-15T16:40:40Z',
    'isDeleted' => false,
    'version' => new MongoInt64(199),
  ),
)

In the cloud it doesn’t work only if I don’t assign a workflow to specific content.

Can please format your examples with code blocks? Nobody can ready that

Are you sure it is not just this: [SOLVED] Cannot save Role options ?

{
“Version”: NumberLong(199),
“Doc”: {
“name”: “cms-portale-ras”,
“label”: “CMS RAS”,
“description”: “Portale istituzionale della Regione Sardegna”,
“roles”: {
“Co-Editor”: [
“contents..read",
"contents.
.create”,
“assets.",
"contents.
.version.create”,
“contents..update"
],
“EditorSanita”: [
"contents.bandosanita.
”,
“assets.read”,
“assets.create”,
“assets.upload”,
“assets.update”,
“contents.notizia.read”,
“contents.notizia.create”,
“contents.notizia.update”,
“contents.notizia.version.create”,
“contents.evento.read”,
“contents.evento.create”,
“contents.evento.update”,
“contents.evento.version.create”
],
“CoEditorSanita”: [
“contents.notizia.read”,
“contents.notizia.create”,
“contents.notizia.version.create”,
“contents.notizia.update”,
“assets.read”,
“assets.create”,
“assets.upload”,
“contents.evento.read”,
“contents.evento.create”,
“contents.evento.update”,
“contents.evento.version.create”
]
},
“image”: {
“mimeType”: “image/png”,
“etag”: “56860a9853134122bea6fa7518d65fd7”
},
“clients”: {
“default”: {
“name”: “default”,
“secret”: “lafy9f9cc5sg6xjdnrrvxou86sv4bvpydiudh0yhpsox”,
“role”: “Reader”
}
},
“patterns”: {
“d7644fc0-0868-4df0-8ba4-8f1d843f805b”: {
“name”: “Email”,
“pattern”: “^[a-zA-Z0-9.!#$%&’+\/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:.[a-zA-Z0-9-]+)$”
},
“90ea4b2d-7b21-47f3-9212-0bbd6491c9c2”: {
“name”: “Phone”,
“pattern”: “^\(\+[1-9]{0,3}\)-[1-9]{0,3}[-. /]\([2-9]\d{2}\)[-. /]\d{3}[-. /]\d{4} ext*\.* \d{0,4}$"
},
“b7cc24a0-9b33-4a39-b194-133c503d6f4c”: {
“name”: “Slug”,
“pattern”: "^[a-z0-9]+(\-[a-z0-9]+)
$”
},
“ad78225d-956d-4ac5-8a85-85843e9a4f44”: {
“name”: “Url”,
“pattern”: “^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w\.-]+)+[\w\-\._~:\/?#%[\]@!\$&’\(\)\*\+,;=.]+$”
}
},
“contributors”: {
“5e985e79ba88eb000121b89b”: “Owner”,
“5ea04b7bba88eb000121b9a4”: “Owner”,
“5ea06db7ba88eb000121bb96”: “Co-Editor”,
“5ea946451a73b900017868e4”: “Editor”,
“5ea959881a73b90001786bef”: “Co-Editor”
},
“languagesConfig”: {
“languages”: {
“en”: {
“fallback”: [

      ],
      "isOptional": false
    },
    "it": {
      "fallback": [
        
      ],
      "isOptional": false
    }
  },
  "master": "it"
},
"workflows": {
  "59fdc05e-7e0b-4ebf-bac8-6d9adafbb644": {
    "steps": {
      "Archived": {
        "transitions": {
          "Published": [
            "Editor",
            "EditorSanita"
          ]
        },
        "color": "#eb3142",
        "noUpdate": false
      },
      "Draft": {
        "transitions": {
          "Published": {
            "roles": [
              "Editor",
              "EditorSanita"
            ]
          },
          "Ready": {
            "expression": "",
            "roles": [
              "Co-Editor",
              "Co-EditorSanita"
            ]
          }
        },
        "color": "#8091a5",
        "noUpdate": false
      },
      "Published": {
        "transitions": {
          "Archived": [
            "Editor",
            "EditorSanita"
          ],
          "Draft": [
            
          ]
        },
        "color": "#4bb958",
        "noUpdate": false
      },
      "Ready": {
        "transitions": {
          "Published": {
            "expression": "",
            "roles": [
              "Editor",
              "EditorSanita"
            ]
          },
          "Reject": {
            "expression": "",
            "roles": [
              "Editor",
              "EditorSanita"
            ]
          }
        },
        "color": "#17a3e6",
        "noUpdate": false,
        "noUpdateRules": [
          
        ]
      },
      "Reject": {
        "transitions": {
          "Ready": {
            "expression": "",
            "roles": [
              "Co-Editor",
              "Co-EditorSanita"
            ]
          }
        },
        "color": "#c117e6",
        "noUpdate": false
      }
    },
    "schemaIds": [
      "5a9eef76-4089-4f53-8493-53ad6b139f07",
      "127532de-39ec-49d0-b99b-cc91eaaf10ab",
      "5a596e35-8cea-478b-91a0-b105169c68ae",
      "e24f4b27-3498-4d4a-8f10-b724c593c547",
      "84cbdfae-77d2-4096-bf05-be0068d7e983",
      "58be4c09-80d9-4403-b5cf-a93d297c3de7",
      "239d338b-ae56-467a-ab8e-c1c89ea48399",
      "797ccb37-b10c-402f-a620-6feb5865ad40"
    ],
    "initial": "Draft",
    "name": "Workflow Base"
  },
  "9e26d2d2-11c8-4696-85cd-adb6b5bead74": {
    "steps": {
      "Archived": {
        "transitions": {
          "Published": [
            
          ]
        },
        "color": "#eb3142",
        "noUpdate": false
      },
      "Draft": {
        "transitions": {
          "Published": [
            "EditorSanita"
          ],
          "Ready": [
            
          ]
        },
        "color": "#8091a5",
        "noUpdate": false
      },
      "Published": {
        "transitions": {
          "Archived": [
            "EditorSanita"
          ]
        },
        "color": "#4bb958",
        "noUpdate": false
      },
      "Ready": {
        "transitions": {
          "Published": [
            "EditorSanita"
          ],
          "Reject": [
            "EditorSanita"
          ]
        },
        "color": "#a217e6",
        "noUpdate": false
      },
      "Reject": {
        "transitions": {
          "Ready": [
            "Co-EditorSanita"
          ]
        },
        "color": "#b417e6",
        "noUpdate": false
      }
    },
    "schemaIds": [
      "fe384a9c-fedd-4f7f-92e2-61b0ac8235e6"
    ],
    "initial": "Ready",
    "name": "Workflow Sanità"
  }
},
"isArchived": false,
"id": "da3c7a1f-660f-4cb4-92ef-e713dfbe9544",
"createdBy": "subject:5e985e79ba88eb000121b89b",
"lastModifiedBy": "subject:5e985e79ba88eb000121b89b",
"created": "2020-04-16T14:30:35Z",
"lastModified": "2020-05-15T16:40:40Z",
"isDeleted": false,
"version": NumberLong(199)

}
}

I can’t add json file and “*” became …

The role option was resolved after the fix, but workfkow doesn’t.

Sometimes the workflow saves, in fact I thought it worked. But yesterday I updated the workflow by inserting new roles and I created a new one. The roles set were never all saved, even if I did it step by step.

When you modify workflow 1 then create workflow 2 then unsaved changes get lost

These are the steps I di:

  • I updated workflow 1 adding new roles
  • I saved It
  • I created workflow 2 and saved It
  • I clicked on the refresh Burton
  • I opened the workflow 1 again and many settings were Lost
  • I opened workflow 2 and no role was saved or added.

Please format your code above.

I also cannot reproduce it. It can only happen when you have multiple squidex nodes without clustering turned on.

Hi,
I deleted the whole app, I created the schemas and the roles again, then I create again the base workflow.
I created new steps and I have bound the steps to the roles and pressed save button.
I wait for the progress bar to finish the operation, then I press on the setting button, and everything disappear from the screen.

My configuration:
Self hosted, One pod, mongodb on replicaset, yaml from GitHUB, persistence storage.

I also made a video, but I cannot attach here.

You can upload it to dropbox or so and then link it.

I will deleted the file in a few hours

From the example I only see changed roles, which could bethe same bug like the other one.

the other bug was that I couldn’t save permissions for a role, and I thought the workflow problem was caused by that, also because I don’t know why the workflow was saved.

Here you mentioned the workflows: [SOLVED] Cannot save Role options

From what I could reproduce it was a pure UI problem with the tag and auto completion editor (both are very similar).

tomorrow I will make pull squidex from docker hub from my sys admin and I will check if the issue will occur again or not

1 Like

If it still happens we can have a skype call or so to verify it.

1 Like

The system administrator updated squidex this morning, but the roles on the workflow do not associate them.
Curious that the association with the schemas and the options of “when” saves them instead.

The log does not detect any errors

Which version have you deployed?