U4-4141 - 7.0.2 "Save and send for approval" fails for a writer user on a newly created unsaved content page

Created by Grady Fields 24 Jan 2014, 17:04:39 Updated by Shannon Deminick 28 May 2014, 02:39:09

Is duplicated by: U4-4940

Relates to: U4-4573

When a user with the default writer permissions clicks "Save and send for approval" on a newly created unsaved content page, the content page goes away. It is not saved. Save on it's own works.

This happens in Firefox and Chrome in our test and production environments hosted on Windows Server 2008 R2. I also recently tested this on a clean 7.0.4 install on Windows Server 2012 R2 in Azure.

2 requests appear on the browser's network: 1st a POST to /umbraco/backoffice/UmbracoApi/Content/PostSave 2nd a GET to /umbraco/backoffice/UmbracoApi/Content/GetById?id=0

Request body of the POST -----------------------------25102100326869 Content-Disposition: form-data; name="contentItem"

{"id":0,"properties":[{"id":0,"alias":"title","value":""},{"id":0,"alias":"bodyText","value":"

Test Writer

"},{"id":0,"alias":"umbracoNaviHide","value":"0"}],"name":"Test Page","contentTypeAlias":"ContentPage","parentId":1072,"action":"sendPublishNew","expireDate":null,"releaseDate":null,"templateAlias":"ContentPage"} -----------------------------25102100326869--

Response of the POST )]}', {"publishDate":null,"releaseDate":null,"removeDate":null,"template":"ContentPage","urls":["This item is not published"],"allowedActions":["H","A","C"],"isChildOfListView":false,"treeNodeUrl":"/umbraco/backoffice/UmbracoTrees/ContentTree/GetTreeNode/0","contentTypeName":"Content Page","notifications":[{"header":"Sent For Approval","message":"Changes have been sent for approval","type":3}],"ModelState":null,"tabs":[{"id":12,"active":true,"label":"Content","alias":"Content","properties":[{"label":"Title","description":,"view":"textbox","config":,"hideLabel":false,"id":0,"value":,"alias":"title"},{"label":"Body Text","description":,"view":"rte","config":{"editor":{"toolbar":["code","styleselect","bold","italic","alignleft","aligncenter","alignright","bullist","numlist","outdent","indent","link","umbmediapicker","umbmacro","umbembeddialog","hr"],"stylesheets":["rtfStyles"],"dimensions":{"height":500}},"hideLabel":null},"hideLabel":false,"id":0,"value":"

Test Writer

","alias":"bodyText"}]},{"id":0,"active":false,"label":"Properties","alias":"Generic properties","properties":[{"label":"Id","description":null,"view":"readonlyvalue","config":,"hideLabel":false,"id":0,"value":"0","alias":"_umb_id"},{"label":"Created by","description":"Original author","view":"readonlyvalue","config":,"hideLabel":false,"id":0,"value":"grady.fields","alias":"_umb_creator"},{"label":"Created","description":"Date/time this document was created","view":"readonlyvalue","config":,"hideLabel":false,"id":0,"value":"0001-01-01 00:00:00","alias":"_umb_createdate"},{"label":"Last edited","description":"Date/time this document was edited","view":"readonlyvalue","config":,"hideLabel":false,"id":0,"value":"0001-01-01 00:00:00","alias":"_umb_updatedate"},{"label":"Document Type","description":null,"view":"readonlyvalue","config":,"hideLabel":false,"id":0,"value":"Content Page","alias":"_umb_doctype"},{"label":"Publish at","description":null,"view":"datepicker","config":,"hideLabel":false,"id":0,"value":null,"alias":"_umb_releasedate"},{"label":"Unpublish at","description":null,"view":"datepicker","config":,"hideLabel":false,"id":0,"value":null,"alias":"_umb_expiredate"},{"label":"Template","description":null,"view":"dropdown","config":{"items":{:"Choose...","ContentOnlyPage":"Content Only Page","ContentPage":"Content Page"}},"hideLabel":false,"id":0,"value":"ContentPage","alias":"_umb_template"},{"label":"Link to document","description":null,"view":"urllist","config":,"hideLabel":false,"id":0,"value":"This item is not published","alias":"_umb_urls"},{"label":"Exclude from Menus","description":"","view":"boolean","config":,"hideLabel":false,"id":0,"value":"0","alias":"umbracoNaviHide"}]}],"updateDate":"0001-01-01 00:00:00","createDate":"0001-01-01 00:00:00","published":false,"owner":{"id":0,"name":"grady.fields"},"updator":{"id":0,"name":"grady.fields"},"contentTypeAlias":"ContentPage","sortOrder":0,"name":"Test Page","id":0,"icon":"icon-umb-content","key":"00000000-0000-0000-0000-000000000000","parentId":1072,"alias":null,"path":null,"metaData":}

The GET on an id of 0 fails with a 404.

2 Attachments

Comments

Chris Lord 13 May 2014, 12:36:55

This issue still exists in 7.1.2, you have to "Save" new content and then "Save and send to approval". If you create the content first, then click "Save and send" first, it errors and the content isn't saved.

This is so close to working perfectly after the fixes to the email notifications, and is a major part of a new project I am working on, hopefully fixed in 7.1.3, or I may have to revert back to v6 :-(


Chris Lord 13 May 2014, 15:45:41

The workaround is to save before you "Save and send".... but this is a difficult conversation with the editors, who will want to press the big green button :-)


Sebastiaan Janssen 19 May 2014, 10:09:16

Still the case in 7.1.3, need to save before save and send.


Priority: Major

Type: Bug

State: Fixed

Assignee: Shannon Deminick

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions: 7.1.2

Due in version: 7.1.4

Sprint:

Story Points:

Cycle: