AnsweredAssumed Answered

Share proxy endpoint drop POST data

Question asked by federicotarantino on Jun 18, 2015
Hi,
if I call my webscript from Share with this code:


$.ajax({
  type: "POST",
  url: "/alfresco/s/myws",
  data: {
    nodeRef: "workspace://SpacesStore/2a879879-7ee1-40b5-a2a9-5e427d9dd4b5"
  },
  contentType: "application/x-www-form-urlencoded; charset=UTF-8",
});


it works.

If i call same ws with url: "/share/proxy/alfresco/myws" it not works. After some test i see:
- proxy drop post data (i see with wireshark and debug)
- issue exists only for "application/x-www-form-urlencoded" POST

I already disable CSRFPolicy.


Issue is on Alfresco 5.0.d. Instead, it works on alfresco 4.2.f.

Outcomes