restlet / restlet-framework-java

The first REST API framework for Java
https://restlet.talend.com
645 stars 284 forks source link

REST params (formData) are not available when using HTTPS POST #1345

Open NadigNikhil opened 4 years ago

NadigNikhil commented 4 years ago

We are runnig a Ubuntu 18.04 Server with nginx. I send the following ExtJS AJAX request to our application via HTTPS:

Ext.Ajax.request({
     url: 'https://localhostl/test/setTaskLock/15/true',
     method: 'POST',
     headers: {
        'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
     },
     params: {
         test123: 'answer123'
     },     
     success: function (response) {
         console.log("success");
     },
     failure: function (response) {
         console.log("failure");
     }
});

We have migrated from 2.3.7 to 2.4.0 and observe that the formbody is missing. While we use HTTP, we get the desired output and issue is there when we try to make the rest call using HTTPS.

Below is the maven dependencies:

2.4.0 org.restlet.jee org.restlet ${restlet.version} org.restlet.jee org.restlet.ext.crypto ${restlet.version} org.restlet.jee org.restlet.ext.fileupload ${restlet.version} org.restlet.jee org.restlet.ext.servlet ${restlet.version} org.restlet.jee org.restlet.ext.xml ${restlet.version} org.restlet.jee org.restlet.ext.wadl ${restlet.version} org.restlet.jee org.restlet.ext.jaxb ${restlet.version}
seppinho commented 4 years ago

Same here. We reproduced this behaviour also with JQuery but also see it with a http proxy server. Any timeline to fix this (possible critical) bug? thanks a lot!

cyberquarks commented 3 years ago

@seppinho @NadigNikhil you may be interested in joining the "Unofficial Restlet Community" https://gitter.im/restlet-framework/community?utm_source=share-link&utm_medium=link&utm_campaign=share-link