Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Sören Deger 733 posts 2844 karma points c-trib
    Feb 25, 2015 @ 14:58
    Sören Deger
    0

    contentResource.Save throw 404 Not Found Error

    Hi all,

    I use a custom dashboard to create content nodes. But contentResource.Save throw a 404 Not Found error:

    ERRORPOST http://localhost:54568/umbraco/backoffice/UmbracoApi/Content/PostSave 404 (Not Found)

     

    This is my code in angularJS controller:

    contentResource.getScaffold(1451, 'textpage')           
        .then(function(scaffold) {                   
     
          var myDoc = scaffold;         
          myDoc.name = "My new document";
    contentResource.save(myDoc, true, [''])                       .then(function(content) {
                              alert("Yeah! 1 new content node!");                    }); });

    The node was created under the parentNode with the new name. But the alert is not run because the error throws the rest of the function.

    Can anyone help me?

    Best,
    Sören

  • Sören Deger 733 posts 2844 karma points c-trib
    Feb 27, 2015 @ 09:35
    Sören Deger
    100

    The same code above works now!

    I have used an clean new umbraco version 7.2.2 with starter kit and implemented only this one custom property editor in a custom dashboard. No error occurs. First I have implemented this in a existing version 7.2.2 with a lot of custom property editors and other customizations. The 404 error above must therefore be related. 

    I think it is not an issue directly in content resource. It works per default :)

  • Sören Deger 733 posts 2844 karma points c-trib
    Feb 27, 2015 @ 15:58
    Sören Deger
    0

    Now I have found the cause of this issue in my first post above.

    In a property description in document type definition it was a '<' char. This has called the angularJS parser.

     

    I have created an issue report here:

    http://issues.umbraco.org/issue/U4-6339

     

    Best,

    Sören

Please Sign in or register to post replies

Write your reply to:

Draft