Re: Suppress Stacktrace in Jetty

2019-09-05 Thread aniketband
Hello JB

This is actually Talend Runtime 7.2.1 

By stacktrace I mean what is shown in browser as response. The stacktrace is
in the logs its fine if required we can suppress it.

Its a route with cRest component which is developed in Talend Studio. 

We have tried to add following section in Jetty and it did not work.
 
/servics/MyService/getinfo/ 
 
 
false 
 
 
 

Now I will try next is  

false
 

Or the Errorhandler must be custom one?

Thanks



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html


Suppress Stacktrace in Jetty

2019-09-05 Thread aniketband
Hello All,We are using Karaf version 4.2.4 with Jetty version 9.3.27 (after
patch https://ops4j1.jira.com/browse/PAXWEB-1205) When there are some rest
services deployed on it and are available also working fine.With this patch
when a rest service is invoked, it does not show the version of the Jetty in
response anymore .When we try to invoke a Rest service with GET operation
and provide parameters which are not really valid. e.g. in the query URL
parameter value added/appended as paramName=abec%a?aa=aThen we get
Stacktrace on the web browser with 500 http Error code.Due to security
reasons (Rest service is a public URL) Customer would like to suppress it.
Is there a way to do it?I was able to find a few things on internet though
they are applicable for web applications. Not sure how to apply the same on
karaf
container.http://jetty.4.x6.nabble.com/jetty-users-How-to-prevent-Jetty-from-outputting-stacktraces-td4961272.htmlhttps://ops4j1.jira.com/browse/PAXWEB-352ThanksAniket



--
Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html