adamfowleruk / generator-mljsworkplace

Yeoman Generator for the MLJS Workplace application and webserver
1 stars 0 forks source link

Getting Content-Type: undefined and nothing is being saved #1

Open willhlaw opened 8 years ago

willhlaw commented 8 years ago

@adamfowleruk, This looks like really good stuff and great job with the wiki. I tried to get this working with ML latest (8.0.3), but was not able to save the name of the Workspace in settings or to persist any dropped widget. I am getting a response from MarkLogic REST calls for the structure, but some other call is failing with a 400 error and Content-Type undefined.

Here's a screenshot of the terminal output with the empty-ish workspace web page behind it.

mljs-workspace-screenshot

Thanks in advance for any help.

adamfowleruk commented 8 years ago

This is likely a known issue with a lack of backwards compatibility in JSON support between V7 and V8 of MarkLogic. Are you on ML7 or 8? Which exact version?

willhlaw commented 8 years ago

(8.0.3)

adamfowleruk commented 8 years ago

Yeah this is almost certainly the same issue. It occurs because the Workplace menu bar tries to lookup menu entries in your content database. Because the search JSON structure was altered in 8.0 the REST API on the server throws a format exception. You can confirm this by looking in the JavaScript console of your browser for an error message in the response (likely XML). Please confirm just to be safe.