Skip to Content
avatar image
Former Member

Connection to "ES5" established. Response returned: "307: Temporary Redirect"

Hi, I'm still having this issue when trying to connect to the ES5 demo system.

I have created an account and this is working correctly, allowing me to log into https://sapes5.sapdevcenter.com. This is to replace ES4.

However, when I go into the destinations screen to set up the ES5 for use with the SAP web IDE - the check connection button always displays this message.

es5-connection-error.jpg

Who do we report this to, to get it fixed.

Many Thanks,

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

6 Answers

  • Apr 11 at 08:26 PM

    Hello David,

    The message you are having is not an error. The destination check is stating that SCP made a request to ES5, but it didn't get a 200 (OK) answer as expected. Instead, it got a 307 (Temporary Redirect). This means that the initial request got redirected to another URL.

    This is exactly what happens when you try to open ES5 URL - you get redirected to a login page. :-)

    Please notice what happens when you open that URL on your browser:

    Regards,
    Ivan

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Alan,

      No, the authentication isn't failing. It means that the cockpit doesn't check for authentication redirects - that's all. Your destination should work on your application just as long as the authentication is properly set (either at destination or at application) and you supply it with a suffix.

      If authentication fails at the application level try entering the complete service path suffix on the destination URL (like mentioned by Anna here). This should be discouraged because it implies one would need to create one destination for each odata service URL - which doesn't make a lot of sense.

      The 307 redirect occurs because the ABAP system can treat authentication differently, depending on the url you call. So, if you don't specify any suffix in the URL, the system opens WebGui (which is an HTML implementation of the standard SAP Gui Client). This Gui lets you choose which transaction to execute next by presenting a hierarchy menu and the transaction box in which you enter t.code to run.

      Now, if you choose a suffix, you may be calling a BSP application, HTML5 application, WebDynpro Application, OData Service, SOAP Service, etc. They are all handled by a component called ICM (Internet Connection Manager). This component deals with all HTTP related requests coming in and out of an ABAP stack. And, since there are so many options (from applications to services) many authentication methods have to be supported. Thus, WebGui may perform the 307 redirect whereas the OData service may simply accept Basic HTTP authentication. Or course, it all depends highly on how each service is configured under ICM (t.code SMICM).

      Using a single destination for all services can be helpful for a developer. You just don't need to specify which Odata service you are calling at the destination URL. You need to specify it on the application being developed. So, let's say you are calling it from a SAPUI5 app. In that particular case you will be defining this in an odata model (manifest.json) where it needs to be configured with the suffix that points to an Odata service in the ABAP stack. When your application calls this odata service it will mesh the destination (url + authentication + protocol) with the suffix defined on the model. Thus, the 307 http code will not happen at all on the application because you will not be logging in interactively via WebGui. However, the destination in the cockpit doesn't know which service you are calling. Hence, it will direct the tests to WebGui (default behavior in ICM when no suffix is added to the URL).

      Therefore, the 307 should not be considered an error or test failure. It is just the way things work in ICM.

      Regards,
      Ivan

  • Sep 11 at 02:10 PM
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 11 at 09:43 AM

    Hi,

    I had the same problem. In SCP while you configure destination put URL https://sapes5.sapdevcenter.com/sap/opu/odata/IWBEP/GWSAMPLE_BASIC/ .

    Regards,

    Anna

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 29 at 03:19 PM

    Did you try using it in Web IDE, it should work. Otherwise provide the error you see there.

    Regards,

    Jamie

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 05 at 08:14 PM

    hi,

    i have the same problem, did you find the solution?

    thank you!

    regards,

    Javier

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 24 at 02:27 PM

    Hi All,

    I had the same problem. In SCP while configure destination with the below URL https://sapes5.sapdevcenter.com/sap/opu/odata/IWBEP/GWSAMPLE_BASIC/

    I am getting the message - >Connection to "ES5" established. Response returned: "401: Unauthorized

    If i just enter the given URL -> https://sapes5.sapdevcenter.comI am getting message -> Connection to "ES5" established. Response returned: "307: Temporary RedirectPlease help me.RegardsManoj Kumar
    Add comment
    10|10000 characters needed characters exceeded