Bug #2274

rudder-inventory-endpoint can't run without rudder-server-root package

Added by Nicolas PERRON almost 3 years ago. Updated over 2 years ago.

Status:Qualified Start date:2012-02-13
Priority:4 Due date:
Assignee:- % Done:

0%

Category:Inventory (webapp, Fusion)
Target version:Ideas (not version specific)
Needs translating:No Pull Request:

Description

It seems that logback.xml is mandatory but isn't installed before rudder-webapp. Nevertheless, even if rudder-webapp is installed, endpoint doesn't respond.

#curl http://localhost:8080/endpoint/api/status/
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 404 Not Found</title>
</head>
<body><h2>HTTP ERROR 404</h2>
<p>Problem accessing /endpoint/api/status/. Reason:
<pre>    Not Found</pre></p><hr /><i><small>Powered by Jetty://</small></i><br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                

</body>
</html>
#curl http://localhost:8080/endpoint/upload
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 405 Request method 'GET' not supported</title>
</head>
<body><h2>HTTP ERROR 405</h2>
<p>Problem accessing /endpoint/upload. Reason:
<pre>    Request method 'GET' not supported</pre></p><hr /><i><small>Powered by Jetty://</small></i><br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                
<br/>                                                

</body>
18:14:42.380 [qtp1706427008-61] WARN  o.s.web.servlet.PageNotFound - Request method 'GET' not supported
18:15:13.212 [qtp1706427008-64] WARN  o.s.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/endpoint/api] in DispatcherServlet with name 'dispatcher'
18:15:15.795 [qtp1706427008-66] WARN  o.s.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/endpoint/api/status] in DispatcherServlet with name 'dispatcher'

History

#1 Updated by Nicolas PERRON almost 3 years ago

  • Assignee changed from Nicolas PERRON to François ARMAND

#2 Updated by François ARMAND almost 3 years ago

  • Status changed from New to Qualified
  • Priority changed from 2 to 4
  • Target version changed from 2.4.0~alpha5 to 2.4.0~alpha6

There is two URL to test (if "endpoint" is the root URL):

  • /endpoint/api/status: only accept "GET", return 200 status, and a plain text response "OK"
  • /endpoint/upload : only accept "POST", return status depending of the POST processing.

Beside that, I have no other idea - pair debugging needed.

#3 Updated by Jonathan CLARKE over 2 years ago

  • Assignee deleted (François ARMAND)
  • Target version changed from 2.4.0~alpha6 to Ideas (2.5 specific)

This looks like a case for a "common" package.

To explain, we currently have various different Scala code repos, that in the end generate 2 WARs (rudder-webapp and rudder-inventory-endpoint). However, creating these 2 WARs involves compiling almost all the same code... and we have two different source packages for this, so do most things twice. This is ugly and inefficient... we should merge these two packages into one source package that creates 2 (or 3) binary packages.

Back to the common package: this source package could create a third package which contains any ressources needed by both rudder-webapp and rudder-inventory-endpoint, like logback.xml, and the dependency to jetty.

Obviously this is a major change, and can't happen in 2.4 now.

#4 Updated by Jonathan CLARKE over 2 years ago

  • Target version changed from Ideas (2.5 specific) to Ideas (not version specific)

Also available in: Atom PDF