[OPENAM-9885] Oauth2 load: Tomcat keeps logging "WARNING: Addition of the standard header "Pragma" is discouraged as a future version of the Restlet API will directly support it." Created: 21/Oct/16  Updated: 24/Oct/19  Resolved: 03/Oct/17

Status: Resolved
Project: OpenAM
Component/s: oauth2
Affects Version/s: None
Fix Version/s: 13.5.1, 14.5.0, 14.1.2

Type: Bug Priority: Major
Reporter: Sebastien Bertholet [X] (Inactive) Assignee: Sachiko Wallace
Resolution: Fixed Votes: 0
Labels: EDISON
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OpenAM-13.5.0 + patch for Sharding LB CTS / Tomcat 7 / jdk8


Target Version/s:
Sprint: AM Sustaining Sprint 33, AM Sustaining Sprint 34, AM Sustaining Sprint 35, AM Sustaining Sprint 36, AM Sustaining Sprint 37
Story Points: 2
Needs backport:
No
Support Ticket IDs:
Needs QA verification:
Yes
Functional tests:
No
Are the reproduction steps defined?:
Yes and I used the same an in the description

 Description   

Running some Oauth2 load against OpenAM 13.5.0 + TPatch to enabled sharding LB for CTS, we keep getting the following message in catalinat.out:

Oct 21, 2016 9:47:32 AM org.restlet.engine.header.HeaderUtils addExtensionHeaders
WARNING: Addition of the standard header "Pragma" is discouraged as a future version of the Restlet API will directly support it.
Oct 21, 2016 9:47:32 AM org.restlet.engine.header.HeaderUtils addExtensionHeaders
WARNING: Addition of the standard header "Pragma" is discouraged as a future version of the Restlet API will directly support it.
Oct 21, 2016 9:47:32 AM org.restlet.engine.header.HeaderUtils addExtensionHeaders
WARNING: Addition of the standard header "Pragma" is discouraged as a future version of the Restlet API will directly support it.
Oct 21, 2016 9:47:32 AM org.restlet.engine.header.HeaderUtils addExtensionHeaders
WARNING: Addition of the standard header "Pragma" is discouraged as a future version of the Restlet API will directly support it.


 Comments   
Comment by Sebastien Bertholet [X] (Inactive) [ 21/Oct/16 ]

Could that be related to OPENAM-6711 ?

Comment by Peter Major [X] (Inactive) [ 05/Jan/17 ]

We should investigate if this issue affects other versions.

Comment by Peter Major [X] (Inactive) [ 31/Jan/17 ]

I'm having problems reproducing this with Wildfly. Mostly because I have some severe problems with logging for a while now. Hopefully this should be easily reproducible for someone who uses Tomcat instead.

Comment by Sachiko Wallace [ 22/Feb/17 ]

https://restlet.com/open-source/documentation/user-guide/2.3/core/http-headers-mapping

Strange thing is I've attached a debugger on OAuth2Filter and I can see it's calling the following code, but tomcat catalina.out log is not printing the warning. However, I have that warning message from Sept last year so there must be some other conditions.

response.getHeaders().add(HeaderConstants.HEADER_PRAGMA, HeaderConstants.CACHE_NO_CACHE);
Comment by Sachiko Wallace [ 01/Mar/17 ]
Daemon Thread [http-bio-18080-exec-5] (Suspended (breakpoint at line 230 in HeaderUtils))	
	owns: SocketWrapper<E>  (id=14605)	
	HeaderUtils.addExtensionHeaders(Series<Header>, Series<Header>) line: 230	
	HeaderUtils.addResponseHeaders(Response, Series<Header>) line: 641	
	ServletServerAdapter(ServerAdapter).addResponseHeaders(HttpResponse) line: 83	
	ServletServerAdapter(ServerAdapter).commit(HttpResponse) line: 184	
	HttpServerHelper.handle(ServerCall) line: 144	
	RestletServiceServlet(ServerServlet).service(HttpServletRequest, HttpServletResponse) line: 1117	
	RestEndpointServlet.service(HttpServletRequest, HttpServletResponse) line: 130	
	RestEndpointServlet(HttpServlet).service(ServletRequest, ServletResponse) line: 728	
	ApplicationFilterChain.internalDoFilter(ServletRequest, ServletResponse) line: 305	
	ApplicationFilterChain.doFilter(ServletRequest, ServletResponse) line: 210	
	ResponseValidationFilter.doFilter(ServletRequest, ServletResponse, FilterChain) line: 44	
	ApplicationFilterChain.internalDoFilter(ServletRequest, ServletResponse) line: 243	
	ApplicationFilterChain.doFilter(ServletRequest, ServletResponse) line: 210	
	SetHeadersFilter.doFilter(ServletRequest, ServletResponse, FilterChain) line: 88	
	ApplicationFilterChain.internalDoFilter(ServletRequest, ServletResponse) line: 243	
	ApplicationFilterChain.doFilter(ServletRequest, ServletResponse) line: 210	
	AMSetupFilter.doFilter(ServletRequest, ServletResponse, FilterChain) line: 111	
	ApplicationFilterChain.internalDoFilter(ServletRequest, ServletResponse) line: 243	
	ApplicationFilterChain.doFilter(ServletRequest, ServletResponse) line: 210	
	AuditContextFilter.doFilter(ServletRequest, ServletResponse, FilterChain) line: 51	
	ApplicationFilterChain.internalDoFilter(ServletRequest, ServletResponse) line: 243	
	ApplicationFilterChain.doFilter(ServletRequest, ServletResponse) line: 210	
	StandardWrapperValve.invoke(Request, Response) line: 222	
	StandardContextValve.invoke(Request, Response) line: 123	
	NonLoginAuthenticator(AuthenticatorBase).invoke(Request, Response) line: 502	
	StandardHostValve.invoke(Request, Response) line: 171	
	ErrorReportValve.invoke(Request, Response) line: 99	
	AccessLogValve.invoke(Request, Response) line: 953	
	StandardEngineValve.invoke(Request, Response) line: 118	
	CoyoteAdapter.service(Request, Response) line: 408	
	Http11Processor(AbstractHttp11Processor<S>).process(SocketWrapper<S>) line: 1023	
	Http11Protocol$Http11ConnectionHandler(AbstractProtocol$AbstractConnectionHandler<S,P>).process(SocketWrapper<S>, SocketStatus) line: 589	
	JIoEndpoint$SocketProcessor.run() line: 310	
	ThreadPoolExecutor(ThreadPoolExecutor).runWorker(ThreadPoolExecutor$Worker) line: 1142	
	ThreadPoolExecutor$Worker.run() line: 617	
	TaskThread(Thread).run() line: 745	
Comment by Phill Cunnington [ 09/May/17 ]

Reopening to change fix version 14.0.1 to 14.5.0

Comment by Ľubomír Mlích [ 13/Nov/17 ]

Any chance to get that TPatch for verification? Sachiko Wallace

Generated at Tue Sep 22 10:58:18 UTC 2020 using Jira 7.13.12#713012-sha1:6e07c38070d5191bbf7353952ed38f111754533a.