Bug 879412

Summary: Logging doesn't work
Product: [Community] PressGang CCMS Reporter: Lee Newson <lnewson>
Component: REST-APIAssignee: pressgang-ccms-dev
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.0CC: sgordon
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-01 23:35:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Lee Newson 2012-11-22 22:07:55 UTC
When trying to set the logging details outside of the RESTEasy Proxy API, the log details fail to be set.

This initially looks to be caused by the fact that RESTEasy appears to choose the method defined without any query parameters. As such only null is passed for each query parameter.

Comment 1 Lee Newson 2012-11-23 03:54:52 UTC
Fixed in 20121123-1253.

Cause:

The RESTEasy Implementation we were using was shared between the client and server, so there were methods to endpoints without mandatory query parameters. As such when you weren't using the proxy, it would delegate it to the implementation without the query parameters. This then caused any query parameters to be discarded.

Consequence:

Logging and other methods wouldn't work when you are using the framework.

Fix:

Separate the methods into a separate interface that extends the primary methods. That way only the core needs to be implemented on the server and the others in the extended implementation can be used by the client.