We have moved to GitHub Issues
Created by doron uziel 02 Feb 2016, 07:33:01 Updated by doron uziel 11 Feb 2016, 06:56:06
I've created a new document type (for the sake of example lets call it Article) compoesd of several other doc-types, and everything works well.
After saving this doc type (and adding some content that uses it - not sure this is relevant), I try to add another composition document type to the 'Article ' doc-type. as soon as I check any doc type in the dialog (as well as uncheck), I receive an error of: "Request error: The URL returned a 404 (not found): /umbraco/backoffice/UmbracoApi/ContentType/GetAvailableCompositeContentTypes"
After further investigation - The problem is with the query string which seems to be very long. This is due to the fact that the doctypes is composed of doc-types that contain a relativlely large amount of fields (which in this case is a 60+). So I am not sure whether this is considered as a bug, as the length of the query string can be configured in the web.config.
Hopefuly this will help others who encounter the same issue.
Well change it to a post and it should be fine
I've already tested that this fixes the original issue of a too long GET querystring. It requires like 60 properties on a composition to fail, so unless you are really bored don't bother testing that part - just confirm that the dialog still works with a normal composition:
Confirming that it works. However, not sure if it is related: when I remove a composition, it says it's going to remove properties and are you sure... check the box, submit: the properties are still in the UI. Save the content type and reload, they are gone. Is this another issue?
Yup, it's a bug, i'll fix up
@zpqrtbnk can you have a look at this commit when you get a sec: 4a8b59bdfac72b5d8bafb5099363273d5d452ef4 This fixes this issue - turns out removing the contentTypeId property from that model broke nearly everything to do with removing a composition. It all works now with this change.
@zpqrtbnk , @Shandem @claus - Very cool - Thank you very much!
Backwards Compatible: True
Affected versions: 7.4.0
Due in version: 7.4.0
Sprint: Sprint 8