Project

General

Profile

Actions

Support #2180

closed

Weird "successful connection" message while RSG service is unavailable

Added by Emmanuel Blondel about 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Emmanuel Blondel
Category:
Application
Start date:
Feb 09, 2016
Due date:
% Done:

100%

Estimated time:
Infrastructure:
Development, Pre-Production

Description

When entering in the test VME report manager, we get a green message saying: "Succesfully connected to: " where <endpoint is the web-service endpoint in question

This message appears even if the above web-service is unavailable (which is the case at now). Would it be possible to send a small http request to test service unavailability instead, and display an error message if unavailable?

Actions #1

Updated by Massimiliano Assante about 9 years ago

  • Status changed from New to Feedback

Emmanuel, right now the RSG WS is up ( see http://figisapps.fao.org/figis/secure-reports-store-gateway/) but some of the methods do not work (e.g. http://figisapps.fao.org/figis/secure-reports-store-gateway/rest/list/types/Vme).

In this case when we try the specific call to the ws method an error is displayed, e.g. We're sorry, it seems something is broken in the communication with the VMEs Repository.

Are you sure that the "Succesfully connected to message" appears even if the RSG WS is (totally) unavailable? Could you please check and let us know?
thanks

Actions #2

Updated by Massimiliano Assante about 9 years ago

  • Assignee changed from Massimiliano Assante to Emmanuel Blondel
Actions #3

Updated by Emmanuel Blondel about 9 years ago

Thanks for your prompt support.
I'm not sure that the page http://figisapps.fao.org/figis/secure-reports-store-gateway/ is part of the rest endpoint http://figisapps.fao.org/figis/secure-reports-store-gateway/rest. Inspecting this page, it seems a static page only (see https://github.com/openfigis/vme/blob/master/vme-web/src/main/webapp/index.html).

Can you clarify the mechanism used to check the connection? Do you perform some REST operation to do that?

What i see is that from the 3 main operations we can do (edit, create, delete), none is currently working, and it's contradictory with the message that we successfully connect to the REST endpoint.

Actions #4

Updated by Massimiliano Assante about 9 years ago

The page at http://figisapps.fao.org/figis/secure-reports-store-gateway/ is a courtesy page deployed together with the RSG WS. Some of the suggested example methods do work,
see this: http://figisapps.fao.org/figis/secure-reports-store-gateway/rest/report/types

Some other don't, the mechanism to check the connection is to instance the RSGReadClient by passing to it the endpoint (new RsgReadClient(rsgAp.getRestUrl());) If this call doesn't fail it means that the RSG web service is responding. And that is why it says successfully connected. I cannot check all the possible RSG methods in this initial phase, i just make sure that the WS is there.

Then if some other ws method dont work na error is displayed, e.g. We're sorry, it seems something is broken in the communication with the VMEs Repository.

It looks like the correct way to do for me.

Actions #5

Updated by Emmanuel Blondel about 9 years ago

Ok, it's clear now how you check the connection. I also agree that you can't check all possible REST operations in this phase. Maybe is the fact it's a generic message that is confusing, instead of having an exception message specific to the method in question.

Generally speaking (& maybe we can close this specific ticket on this): How specific RSG exceptions could be handled in the RM? is it possible? (I'd like to relate this to the need to share data business validation RSG exception messages to the RM)

Actions #6

Updated by Massimiliano Assante about 9 years ago

  • Status changed from Feedback to Closed

specific RSG exceptions are bubbled up to the interface (Reports Manager), but I can only suggest you to see how Fabio Fiorellato was doing to understand how.

Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 8.91 MB)