Articulate icon indicating copy to clipboard operation
Articulate copied to clipboard

Routing windowslivewriter manifest & XMLRPC MetaWeblog to support OpenLiveWriter

Open warrenbuckley opened this issue 3 years ago • 8 comments
trafficstars

  • Adds the wlwmanifest/{id} route to return the XML used in conjunction with the RSD XML
  • Gets the XMLRPC / MetaWeblog Controller for receiving HTTP POSTed XML for OpenLiveWriter
  • Drops Cookcomputing.XMLRpc for WilderMinds.MetaWeblog https://github.com/shawnwildermuth/MetaWeblog

Help needed

I am unsure with DI to update the Root Articulate Blog Node ID - so appreciate any pointers @Shazwazza

private IPublishedContent BlogRoot()
{
    // TODO: Do not hardcode 1068 - need to pass it through from the controller route
    // When injecting this service into the controller - but how?!?
    var node = _umbracoContextAccessor.GetRequiredUmbracoContext().Content.GetById(1068);
    ...
}

Testing

  • Download Open Live Writer
  • Have test site running & put a breakpoint in MetaWeblogController to help with ddebugging
  • Add new configuration pointing to example site
  • Add a new post - via theme detection
  • It should delete the temp post & put it in the recycle bin
  • Add a new post
    • Select existing category
    • Add a new category
    • Select existing tags
    • Add a new tag
    • Add one or more image (Use the silly effects in LiveWriter)
    • Save draft & verify
    • Publish & verify
  • Close Open Live Writer
  • File -> Open Recent Post -> Select blog account from list (Fetches recent posts)
    • Select an item
    • Use delete button - ensure blog post is moved to recycle bin
    • Select an item to edit
    • Update content, properties, categories & tags - verify changes are expected

warrenbuckley avatar Jul 05 '22 15:07 warrenbuckley

Has some conflicts now. Then windows live writer integration will need to be tested

Shazwazza avatar Jul 05 '22 21:07 Shazwazza

This is just the route and XML returned for the WLW Manifest image

Will do a sperate PR for the route that is needed for WLW (Will also see if you can download/use it)

warrenbuckley avatar Jul 06 '22 09:07 warrenbuckley

OK not sure if Windows Live Writer is a thing anymore and the MetaWebBlog Spec is 404 from your comments http://xmlrpc.com/metaWeblogApi.html

Is this something still worth supporting and migrating over @Shazwazza ?

warrenbuckley avatar Jul 06 '22 10:07 warrenbuckley

It's a thing, It's Open Live Writer now https://openlivewriter.com/

Shazwazza avatar Jul 06 '22 20:07 Shazwazza

Ok will have to take a look to try and figure out the rest of it.

Gotta love the XP/Windows Vista style vibes of the app still !

warrenbuckley avatar Jul 06 '22 20:07 warrenbuckley

Making draft PR as will include the other routing stuff to get all of the MetaWeblog/Open Live Writer stuff working

warrenbuckley avatar Jul 07 '22 20:07 warrenbuckley

OK @Shazwazza I am gonna need your help here as I have fixed up the MetaWeblogHandler class that was commented out but I have no idea how to wire it up into the routes with RouteTransformer stuff you have.

Any advice or pointers you can give on how to fix/resolve this then I can try and attempt it

No Idea

warrenbuckley avatar Jul 08 '22 08:07 warrenbuckley

@Shazwazza ready for review & testing with Open Live Writer now :)

Ready when you are

warrenbuckley avatar Aug 02 '22 13:08 warrenbuckley

Thanks warren, i fixed a bunch up in your branch and merged 🎉

Shazwazza avatar Mar 09 '23 20:03 Shazwazza