Rat (Release Audit Tool) resultsThe following document contains the results of Rat (Release Audit Tool). ***************************************************** Summary ------- Generated at: 2018-12-02T17:01:36-07:00 Notes: 0 Binaries: 0 Archives: 1 Standards: 65 Apache Licensed: 61 Generated Documents: 0 JavaDocs are generated, thus a license header is optional. Generated files do not require license headers. 4 Unknown Licenses ***************************************************** Files with unapproved licenses: /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/test/resources/basicCatalog.json /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/test/java/org/apache/logging/log4j/audit/LoginTest.java /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/test/java/org/apache/logging/log4j/audit/BaseEventTest.java /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/test/java/org/apache/logging/log4j/audit/event/Login.java ***************************************************** Archives: + /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/test/resources/catalog.zip ***************************************************** Files with Apache License headers will be marked AL Binary files (which do not require any license headers) will be marked B Compressed archives will be marked A Notices, licenses etc. will be marked N AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/pom.xml AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/testCatalog.json AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/test/resources/InterfacesGeneratorContext.xml AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/test/resources/log4j2-test.xml !????? /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/test/resources/basicCatalog.json A /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/test/resources/catalog.zip AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/test/resources/interfacesGenerator.properties AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/test/java/org/apache/logging/log4j/audit/util/NamingUtilsTest.java !????? /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/test/java/org/apache/logging/log4j/audit/LoginTest.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/test/java/org/apache/logging/log4j/audit/TransferTest.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/test/java/org/apache/logging/log4j/audit/catalog/CatalogManagerTest.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/test/java/org/apache/logging/log4j/audit/catalog/StringCatalogReader.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/test/java/org/apache/logging/log4j/audit/RequestContext.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/test/java/org/apache/logging/log4j/audit/generator/TestInterfacesGenerator.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/test/java/org/apache/logging/log4j/audit/AuditLoggerTest.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/test/java/org/apache/logging/log4j/audit/RequestContextTest.java !????? /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/test/java/org/apache/logging/log4j/audit/BaseEventTest.java !????? /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/test/java/org/apache/logging/log4j/audit/event/Login.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/test/java/org/apache/logging/log4j/audit/event/Transfer.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/site/markdown/index.md AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/site/site.xml AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/dto/AuditDto.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/LogEventFactory.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/util/StringUtil.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/util/JsonObjectMapperFactory.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/util/NamingUtils.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/layout/AuditLayout.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/AuditMessage.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/catalog/CatalogManagerImpl.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/catalog/CatalogManager.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/annotation/Local.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/annotation/Constraints.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/annotation/Required.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/annotation/RequestContextConstraints.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/annotation/ClientServer.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/annotation/RequestContext.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/annotation/ChainedSupplier.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/annotation/MaxLength.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/annotation/Chained.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/annotation/HeaderPrefix.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/annotation/Constraint.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/AuditExceptionHandler.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/generator/ConstructorDefinition.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/generator/Parameter.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/generator/VariableDefinition.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/generator/MethodDefinition.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/generator/AccessorDefinition.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/generator/InterfacesGenerator.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/generator/ClassGenerator.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/generator/Constants.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/AuditEvent.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/request/RequestContextMappings.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/request/ChainedMapping.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/request/RequestContextMapping.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/request/LocalMapping.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/request/ClientServerMapping.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/request/Scope.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/ActivityLogger.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/exception/ConstraintValidationException.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/exception/AuditException.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/rest/RequestContextHeaderInterceptor.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/rest/ElapsedUtil.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/rest/RequestContextFilter.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/rest/RequestContextHandlerInterceptor.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/AbstractEventLogger.java AL /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/main/java/org/apache/logging/log4j/audit/AuditLogger.java ***************************************************** Printing headers for text files without a valid license header... ===================================================== == File: /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/test/resources/basicCatalog.json ===================================================== { "events" : [ { "name" : "login" } ] } ===================================================== == File: /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/test/java/org/apache/logging/log4j/audit/LoginTest.java ===================================================== package org.apache.logging.log4j.audit; import org.apache.logging.log4j.audit.event.Login; import org.junit.Test; import java.util.Collections; import java.util.List; import static org.junit.Assert.*; public class LoginTest extends BaseEventTest { @Test public void testAuditClassToString() { Login event = LogEventFactory.getEvent(Login.class); event.setCompletionStatus("Success"); String string = event.toString(); assertEquals("[login completionStatus=\"Success\"]", string); } @Test public void testAuditClass() { Login event = LogEventFactory.getEvent(Login.class); event.logEvent(); event.setCompletionStatus("Success"); event.logEvent(); AuditExceptionHandler exceptionHandler = (message, ex) -> { }; event.setAuditExceptionHandler(exceptionHandler); event.logEvent(); List<String> msgs = app.getMessages(); assertNotNull("No messages", msgs); assertEquals("No messages", 3, msgs.size()); String msg = msgs.get(1); assertTrue("No completionStatus", msg.contains("completionStatus=\"Success\"")); msg = msgs.get(2); assertFalse("auditExceptionHandler should not be present in the context", msg.contains("auditExceptionHandler=\"")); msgs.forEach(System.out::println); } @Test public void testAuditLog() { ===================================================== == File: /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/test/java/org/apache/logging/log4j/audit/BaseEventTest.java ===================================================== package org.apache.logging.log4j.audit; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.ThreadContext; import org.apache.logging.log4j.core.Appender; import org.apache.logging.log4j.core.LoggerContext; import org.apache.logging.log4j.core.config.Configuration; import org.apache.logging.log4j.test.appender.ListAppender; import org.junit.Before; import org.junit.BeforeClass; import java.util.Map; import static org.junit.Assert.assertNotNull; public class BaseEventTest { protected static LoggerContext ctx; protected static ListAppender app; @BeforeClass public static void setupClass() throws Exception { ctx = (LoggerContext) LogManager.getContext(false); Configuration config = ctx.getConfiguration(); for (Map.Entry<String, Appender> entry : config.getAppenders().entrySet()) { if (entry.getKey().equals("List")) { app = (ListAppender) entry.getValue(); break; } } assertNotNull("No Appender", app); } @Before public void before() { app.clear(); ThreadContext.clearMap(); } } ===================================================== == File: /Users/rgoers/projects/apache/logging/log4j/log4j-audit-1.0.1/log4j-audit/log4j-audit-api/src/test/java/org/apache/logging/log4j/audit/event/Login.java ===================================================== package org.apache.logging.log4j.audit.event; import org.apache.logging.log4j.audit.AuditEvent; public interface Login extends AuditEvent { } |