You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Andrei Ivanov (JIRA)" <ji...@apache.org> on 2019/05/30 08:52:00 UTC

[jira] [Commented] (LOG4J2-2448) Allow usage of Versions in non-Spring environments

    [ https://issues.apache.org/jira/browse/LOG4J2-2448?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16851654#comment-16851654 ] 

Andrei Ivanov commented on LOG4J2-2448:
---------------------------------------

Looking again at this issue, I see that the {{org.springframework.http.MediaType}} was only used in {{CatalogTest}}, by {{MockMvc}}, and that also gladly accepts a {{String}} for {{Accept}}/{{Content-Type.}}

The actual controllers expect a {{String}} for the mappings {{consumes}} and {{produces}}

> Allow usage of Versions in non-Spring environments
> --------------------------------------------------
>
>                 Key: LOG4J2-2448
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-2448
>             Project: Log4j 2
>          Issue Type: Improvement
>          Components: Log4j-Audit
>    Affects Versions: Log4j-Audit 1.0.0
>            Reporter: Andrei Ivanov
>            Priority: Minor
>
> As my application uses just JAX-RS, without Spring, I had to re-implement {{AuditController}} using plain JAX-RS.
> The problem is that {{Versions}} uses a Spring class, as seen [here| https://github.com/apache/logging-log4j-audit/blob/master/log4j-catalog/log4j-catalog-api/src/main/java/org/apache/logging/log4j/catalog/api/Versions.java#L34].



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)