Item11786: Workflow Issue in Foswiki 1.1.5

pencil
Priority: Normal
Current State: No Action Required
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: WorkflowPlugin
Branches:
Reported By: JoeMarandola PaulAlexander
Waiting For:
Last Change By: CrawfordCurrie
I have a web that contains a workflow for reviewing documents. It works fine. The workflow is defined in the web’s WebPreferences.

Under this web, I have a subweb. It has a workflow that is different and is defined in it’s WebPreferences. It used to work fine in Foswiki 1.1.4. I recently upgraded to Foswiki 1.1.5 and this subweb workflow has now has a problem.

In the subweb, we created a topic that used the workflow. Within that topic, we used a form to create a second topic (no workflow). The second topic comes up in edit form and when you try to save it, we get the “Access Denied” message prevented by workflow – and I am logged in as Admin.

So I decided to copy the workflow topic to the subweb instead of referencing . Somehow something got messed because somehow I got it there but now get an Access Denied message just trying to edit it – as admin user??

Here is the workflow topic:
| *State* | *Allow Edit* | *Message* |
| PREPARING|   | _Please select ""Change Status - Mark as Preparing" on initial creation.  Once all checklists are completed, you may submit to the Build Manager_   |
| SENTBUILDMANAGER | Main.CameoBuildManagerGroup | _Build Manager - Approve after incorporation or Reject if not complete_ |
| INCORPORATED| Main.CameoBuildManagerGroup| _This submittal has been approved by the Build Manager and incorporated_|

| *State* | *Action* | *Next State* | *Allowed* |  *Form*  |
| PREPARING| Mark as Preparing  | PREPARING |   | |
| PREPARING| Submit for Build | SENTBUILDMANAGER |   | |
| SENTBUILDMANAGER | Submission Package Rejected | PREPARING| Main.CameoBuildManagerGroup | |
| SENTBUILDMANAGER | Submission Package Approved and Incorporated| INCORPORATED| Main.CameoBuildManagerGroup | |
| INCORPORATED| Submission Package Rejected| PREPARING| Main.CameoBuildManagerGroup | |

Now we try to “Edit Wiki Text” (as ADMIN), and get this.

Access check on CameoSubmittalWorkFlow failed. Action "Edit topic": You are not permitted to edit this topic. You have been denied access by Workflow Plugin

I think I found the problem. Somehow this file above and the template for the topic to be created got metadata for the workflow within it. I made new copies without the metadata tags and the problem resolved. Still amazing, however, that the WorkFlowPlugin control could override my Admin privilege.

-- JoeMarandola - 23 Apr 2012

I found the problem is back and the removal of the metadata tag no longer solves it. Could this be connected to the recent change in WysiwygPlugin?

-- JoeMarandola - 07 Jun 2012

I believe the issue is resolved. I had all templates in the same main web, even though the main web and the subwebs had different workflows. Then topics would get created with the incorrect workflow.

-- JoeMarandola - 07 Jun 2012

I'm unsure if I should reopen or start a new task. We have the following workflow topic Sandbox/WorkflowDescription and also get the error: "Access check on TestWorkFlow failed. Action "Edit topic": You are not permitted to edit this topic. You have been denied access by Workflow Plugin."

States

State Allow Edit Message
UNCHECKED PaulAlexander This document has not been checked for correctness.
INPROGRESS PaulAlexander This document is waiting for approval by the Quality Manager.
CHECKED PaulAlexander This document has been approved for release.

Transitions

State Action Next State Allowed
UNCHECKED progress INPROGRESS PaulAlexander
INPROGRESS publish CHECKED PaulAlexander
CHECKED retract INPROGRESS PaulAlexander

Parenting WorkflowDescription to (child topic of) TestWorkFlow causes WORKFLOWTRANSITION to be hidden, and when I made the topicparent empty %WORKFLOWTRANSITION% was working.

After the first transition is selected I (Admin) receive the error.

-- PaulAlexander - 18 Jun 2012

TOPICPARENT is irrelevant to WFP. Unfortunately there is insufficient information here for me to make a comment. Closing no-action; if the problem is stille extant, please re-open and attach the minimum number of topics required to demonstrate the problem.

-- CrawfordCurrie - 20 Jan 2015
 

ItemTemplate edit

Summary Workflow Issue in Foswiki 1.1.5
ReportedBy JoeMarandola PaulAlexander
Codebase 1.1.5
SVN Range
AppliesTo Extension
Component WorkflowPlugin
Priority Normal
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release01x01Checkins
Topic revision: r7 - 20 Jan 2015, CrawfordCurrie
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy