File log4j.changes of Package log4j.22243

-------------------------------------------------------------------
Sat Dec 18 15:29:11 UTC 2021 - Andreas Stieger <andreas.stieger@gmx.de>

- add upstream signing key to verify source signature

-------------------------------------------------------------------
Sat Dec 18 11:16:56 UTC 2021 - David Anes <david.anes@suse.com>

- Update to 2.17.0 [bsc#1193887, bsc#1193888, CVE-2021-45105]
  * Fixed Bugs
    - Fix string substitution recursion.
    - Limit JNDI to the java protocol only. JNDI will remain disabled
      by default. Rename JNDI enablement property from 
      'log4j2.enableJndi' to 'log4j2.enableJndiLookup', 
      'log4j2.enableJndiJms', and 'log4j2.enableJndiContextSelector'.
    - Limit JNDI to the java protocol only. JNDI will remain disabled
      by default. The enablement property has been renamed to 
      'log4j2.enableJndiJava'
    - Do not declare log4j-api-java9 and log4j-core-java9 as 
      dependencies as it causes problems with the Maven enforcer 
      plugin.
    - PropertiesConfiguration.parseAppenderFilters NPE when parsing
      properties file filters.
    - Log4j 1.2 bridge for Syslog Appender defaults to port 512 
      instead of 514.
    - Log4j 1.2 bridge API hard codes the Syslog protocol to TCP.

-------------------------------------------------------------------
Wed Dec 15 02:06:55 UTC 2021 - Simon Lees <sflees@suse.de>

- Update to 2.16.0 [bsc#1193743, CVE-2021-45046]
  * Features
    - Add JsonTemplateLayout.
    - Create module log4j-mongodb4 to use new major version 4
      MongoDB driver.
    - More flexible configuration of the Disruptor WaitStrategy.
      Thanks to Stepan Gorban.
  * Bugfixes and minor enhancements
    - It was found that the fix to address CVE-2021-44228 in Apache 
      Log4j 2.15.0 was incomplete in certain non-default
      configurations.
      This could allows attackers with control over Thread Context
      Map (MDC) input data when the logging configuration uses a
      Pattern Layout with either a Context Lookup (for example,
      $${ctx:loginId}) or a Thread Context Map pattern (%X, %mdc, or
      %MDC) to craft malicious input data using a JNDI Lookup
      pattern resulting in a denial of service (DOS) attack.
      Log4j 2.15.0 restricts JNDI LDAP lookups to localhost by
      default. Note that previous mitigations involving
      configuration such as setting the system property
      log4j2.noFormatMsgLookup to true do NOT mitigate this specific
      vulnerability.
    - Upstream initial fix for bsc#1193611, CVE-2021-44228
    - Numerous other minor bugfixes 
  * Drop CVE-2021-44228.patch and disable-jndi-by-default.patch
    included upstream
  * To make the bots happy this stream isn't affected by
    bsc#1193662 CVE-2021-4104 which is 1.X only

-------------------------------------------------------------------
Tue Dec 14 17:43:26 UTC 2021 - Peter Simons <psimons@suse.com>

- Apply "disable-jndi-by-default.patch" to disable JNDI support by
  default. There is evidence that the previous upstream fix for
  CVE-2021-44228 did not solve the vulnerability entirely. Since
  JNDI support is ususally not required, upstream recommends this
  route to be completely safe. [bsc#1193611, CVE-2021-44228]

-------------------------------------------------------------------
Fri Dec 10 14:03:24 UTC 2021 - Peter Simons <psimons@suse.com>

- Apply "CVE-2021-44228.patch" to fix a remote code execution
  vulnerability that existed in the LDAP JNDI parser. [bsc#1193611,
  CVE-2021-44228]

-------------------------------------------------------------------
Mon Apr 27 14:57:36 UTC 2020 - Fridrich Strba <fstrba@suse.com>

- Do not build the log4j-jpl artifact, as to avoid java-11-only
  features

-------------------------------------------------------------------
Mon Apr 27 11:21:57 UTC 2020 - Pedro Monreal Gonzalez <pmonrealgonzalez@suse.com>

- Update to 2.13.2 [bsc#1170535, CVE-2020-9488]
  * Bugfixes and minor enhancements:
    - CVE-2020-9488: Improper validation of certificate with host mismatch
      in Apache Log4j SMTP appender.
    - Implement requiresLocation in GelfLayout to reflect whether location
      information is used in the message Pattern.
    - Add option to restore printing timeMillis in the JsonLayout.
    - Initialize pattern processor before triggering policy during reconfiguration.
    - Add information about using a url in log4j.configurationFile.
    - serializeToBytes was checking wrong variable for null.
    - Fix Javadoc for ScriptPatternSelector.
    - Allow trailing and leading spaces in log level.
    - Correct JsonLayout timestamp sorting issue.
    - Allow the file size action to parse the value without being sensitive
      to the current locale.
    - Make YamlLayoutTest more resiliant to environmental differences.
    - Conditionally allocate PluginEntry during PluginCache loading.
    - Add missing includeLocation parameter when creating AsyncLogger.
    - Fix Exceptions when whitespace is in the file path and Java security
      manager is used.
    - Avoid NullPointerException when StackWalker returns null.
    - TimeFilter did not handle daylight saving time transitions and did
      not support a range over 2 days.
    - Provide a Log4j implementation of System.Logger.
    - Added EventLookup to retrieve fields from the log event.
  * Changes:
    - Allow the file extension in the file pattern to be modified during reconfiguration.
    - Add support for specifying an SSL configuration for SmtpAppender.
    - Allow servlet context path to be retrieved without "/".
    - Allow Spring Lookup to return default and active profiles.
    - Allow Spring Boot applications to use composite configuratons.
    - Add ContextDataProviders as an alternative to having to implement a ContextDataInjector.
    - [JDBC] Throw a AppenderLoggingException instead of an NPE in the JDBC database manager.
- Update to 2.13.1
    - Prevent LoggerContext from being garbage collected while being created.
    - Do not log an error if Files.move does not work.
    - Rollover fails when file matches pattern but index is too large.
    - Counter stuck at 10 and overwriting files when leading zeros used in the file pattern count.
    - ClassLoaderContextSelector was not locating the LoggerContext during shutdown.
    - JSON output wrong when using additonal fields.
    - GraalVM does not allow use of MethodHandles.
    - Allow Lookup keys with leading dashes by using a slash as an escape character.
    - ServletContainerInitializer was obtaining the StatusLogger too soon.
    - PluginProcessor should use Messager instead of System.out.
    - MapMessage.getFormattedMesssage() would incorrectly format objects.
    - Always write header on a new OutputStream.
    - An error message in RollingFileAppender uses a placeholder for the name but does not
      specify the name argument in the logging call.
    - NullPointerException when using a custom DirectFileRolloverStrategy without a file name.
    - Add mulit-parameter overloads to LogBuilder.
    - Fixed NullPointerException after reconfiguring via JMX.
    - RollingFileAppender was not rolling on startup if createOnDemand was set to true.
    - Warn if pattern is missing on Routes element. Use default route.
    - Fix lock contention in the classloader using new versions of slf4j without EventData
      on slf4j logger creation.
    - Rollover handles parallel file deletion gracefully.
    - Remove unnecessary EventLogger references from log4j-slf4j18-impl due to removal from slf4j.
    - Fix a memory leak using fully asynchronous logging when the queue is full using the 'discard'
      asynchronous queue full strategy.
    - Fix erroneous log4j-jul recursive logger detection resulting in some no-op JUL loggers and
      'WARN Recursive call to getLogger' being reported by the status logger.
    - PluginCache output is reproducible allowing the annotation processor to produce
      deterministic results.
    - Fix StackLocator.getCallerClass performance in cases where Reflection.getCallerClass
      is not accessible.
    - MutableLogEvent and RingBufferLogEvent avoid StringBuffer and parameter array allocation
      unless reusable messages are used.
    - LoaderUtil.getClassLoaders may discover additional loaders and no longer erroneously returns
      a result with a null element in some environments.
    - CronExpression.getBeforeTime() would sometimes return incorrect result.
    - [JDBC] MS-SQL Server JDBC driver throws SQLServerException when inserting a null value
      for a VARBINARY column.
    - NullPointerException after reconfiguring via JMX.
    - Implement ISO8601_PERIOD_MICROS fixed date format matching ISO8601_PERIOD with support
      for microsecond precision.
  * Changes:
    - Conditionally perform status logging calculations in PluginRegistry.
    - Use LinkedBlockingQueue instead of synchronized collction in StatusConfiguration.
    - Add a retry count attribute to the KafkaAppender.
    - Update log4j-slf4j18-impl slf4j version to 1.8.0-beta4 from 1.8.0-alpha2.
    - Update dependencies.
- Remove patch fixed upstream:
  * logging-log4j-LOG4J2-2745-LOG4J2-2744-slf4j.patch
  * log4j-CVE-2020-9488.patch
- Refresh patch:
  * logging-log4j-Remove-unsupported-EventDataConverter.patch

-------------------------------------------------------------------
Mon Apr 27 11:21:57 UTC 2020 - Pedro Monreal Gonzalez <pmonrealgonzalez@suse.com>

- Security fix: [bsc#1170535, CVE-2020-9488]
  * Improper validation of certificate with host mismatch in SMTP appender.
- Add log4j-CVE-2020-9488.patch

-------------------------------------------------------------------
Wed Feb 26 18:03:25 UTC 2020 - Fridrich Strba <fstrba@suse.com>

- Added patches:
  * logging-log4j-LOG4J2-2745-LOG4J2-2744-slf4j.patch
  * logging-log4j-Remove-unsupported-EventDataConverter.patch
    + fix build with newer slf4j

-------------------------------------------------------------------
Tue Jan 21 10:55:28 UTC 2020 - Pedro Monreal Gonzalez <pmonrealgonzalez@suse.com>

- Update to 2.13.0 [bsc#1159646, CVE-2019-17571]
  * Bugfixes and minor enhancements:
    - CVE-2019-17571: Remote code execution: Deserialization of untrusted
      data in SocketServer
    - Log4j 2 now requires Java 8 or higher to build and run.
    - Better integration with Spring Boot by providing access to Spring
      variables in Log4j 2 configuration files and allowing Log4j 2 system
      properties to be defined in the Spring configuration.
    - Support for accessing Kubernetes information via a Log4j 2 Lookup.
    - The Gelf Layout now allows the message to be formatted using a
      PatternLayout pattern.
    - Due to a break in compatibility in the SLF4J binding, Log4j now
      ships with two versions of the SLF4J to Log4j adapters.
    - log4j-slf4j-impl should be used with SLF4J 1.7.x and earlier and
      log4j-slf4j18-impl should be used with SLF4J 1.8.x and later.
    - Note that the XML, JSON and YAML formats changed in the 2.11.0 release:
      they no longer have the "timeMillis" attribute and instead have an
      "Instant" element with "epochSecond" and "nanoOfSecond" attributes.
    - The Log4j 2.13.0 API, as well as many core components, maintains
      binary compatibility with previous releases.
  * New Features
    - Add ThreadContext.putIfNotNull method.
    - Add a Level Patttern Selector.
    - Add experimental support for Log4j 1 configuration files.
    - Add the ability to lookup Kubernetes attributes in the Log4j
      configuration. Allow Log4j properties to be retrieved from the
      Spring environment if it is available.
    - Allow Spring Boot application properties to be accessed in the
      Log4j 2 configuration. Add lower and upper case Lookups.
    - Add builder pattern to Logger interface.
  * Fixed Bugs
    - Prevent recursive calls to java.util.LogManager.getLogger().
    - Added try/finally around event.execute() for RingBufferLogEventHandler
      to clear memory correctly in case of exception/error.
    - Wrong java version check in ThreadNameCachingStrategy.
    - Use a less confusing name for the CompositeConfiguration source.
    - Add setKey method to Kafka Appender Builder.
    - ArrayIndexOutOfBoundsException could occur with MAC address longer
      than 6 bytes.
    - The rolling file appenders would fail to compress the file after
      rollover if the file name matched the file pattern.
    - @PluginValue does not support attribute names besides "value".
    - Validation blocks definition of script in properties configuration.
    - Set result of rename action to true if file was copied.
    - Add automatic module names where missing.
    - OutputStreamAppender.Builder ignores setFilter().
    - Prevent a memory leak when async loggers throw errors.
  * Changes
    - Update Jackson to 2.9.10.
    - Allow message portion of GELF layout to be formatted using a PatternLayout.
    - Allow ThreadContext attributes to be explicitly included or excluded in the GelfLayout.

-------------------------------------------------------------------
Mon Jan  6 09:29:32 UTC 2020 - Fridrich Strba <fstrba@suse.com>

- Obsolete log4j-mini, since on systems where this package is
  installed, the log4j-mini is not supposed to exist, but the
  compatibility version log4j12-mini/log4j12

-------------------------------------------------------------------
Mon Nov  4 14:22:37 UTC 2019 - Fridrich Strba <fstrba@suse.com>

- Run fdupes on the javadoc

-------------------------------------------------------------------
Tue Oct  1 14:23:32 UTC 2019 - Fridrich Strba <fstrba@suse.com>

- Upgrade to apache-log4j-2.11.1
- Drop the log4j vs. log4j-mini split
  * the bootstrapping is done using the log4j12/log4j12-mini
    compatibility packages 
- Removed patches:
  * log4j-javadoc-xlink.patch
  * log4j-logfactor5-userdir.patch
  * log4j-mx4j-tools.patch
  * log4j-reproducible.patch
    + unnecessary with this version

-------------------------------------------------------------------
Tue Jan 22 10:59:09 UTC 2019 - Fridrich Strba <fstrba@suse.com>

- Build against a generic javamail provider instead of against
  classpathx-mail

-------------------------------------------------------------------
Tue Jan 15 04:41:49 UTC 2019 - Fridrich Strba <fstrba@suse.com>

- Let log4j provide the log4j-mini and obsolete it too.
- Remove conflicts on each other

-------------------------------------------------------------------
Thu Dec 13 15:36:59 UTC 2018 - Fridrich Strba <fstrba@suse.com>

- Depend on the generic xml-apis

-------------------------------------------------------------------
Thu Oct 18 11:50:32 UTC 2018 - Fridrich Strba <fstrba@suse.com>

- Install and package the maven pom and metadata files for the 
  non-bootstrap log4j

-------------------------------------------------------------------
Wed Jul 25 08:07:37 UTC 2018 - fstrba@suse.com

- Require at least java 8 for build

-------------------------------------------------------------------
Wed Jan 10 13:45:44 UTC 2018 - bwiedemann@suse.com

- Add log4j-reproducible.patch to drop javadoc timestamps to make
  package builds more reproducible (boo#1047218)

-------------------------------------------------------------------
Tue Sep 12 07:10:10 UTC 2017 - fstrba@suse.com

- Specify java source and target level 1.6 to allow building with
  jdk9

-------------------------------------------------------------------
Mon Mar  2 13:17:50 UTC 2015 - tchvatal@suse.com

- Version bump to 1.2.17 latest 1.2 series:
  * No short changelog provided - many small changes
- Try to avoid cycle between log4j and apache-common-loggings
- Remove obsoleted patch:
  * log4j-jmx-Agent.patch
- Refresh patch to apply to new source:
  * log4j-mx4j-tools.patch

-------------------------------------------------------------------
Mon Mar  2 12:37:05 UTC 2015 - tchvatal@suse.com

- Cleanup with a spec-cleaner so I can understand what
  is going around here.

-------------------------------------------------------------------
Thu Sep 12 08:44:08 UTC 2013 - mvyskocil@suse.com

- log4j and log4j-mini are in conflict 

-------------------------------------------------------------------
Mon Sep  9 11:06:12 UTC 2013 - tchvatal@suse.com

- Move from jpackage-utils to javapackage-tools

-------------------------------------------------------------------
Tue Jul 16 14:05:53 CEST 2013 - mls@suse.de

- get rid of wrong dir modifier in filelist

-------------------------------------------------------------------
Thu Dec 10 11:11:47 UTC 2009 - mvyskocil@suse.cz

- refreshed patches
  * log4j-javadoc-xlink.patch
  * log4j-jmx-Agent.patch
  * log4j-logfactor5-userdir.patch
  * log4j-mx4j-tools.patch

-------------------------------------------------------------------
Wed Jul 16 12:52:50 CEST 2008 - coolo@suse.de

- even more packages to build ignore

-------------------------------------------------------------------
Fri Jun 27 10:54:27 CEST 2008 - coolo@suse.de

- avoid build cycle between axis and log4j

-------------------------------------------------------------------
Tue May  6 12:36:44 CEST 2008 - mvyskocil@suse.cz

- removed a dots in a names of geronimo-* packages

-------------------------------------------------------------------
Tue Apr  8 11:26:43 CEST 2008 - mvyskocil@suse.cz

- updated to 1.2.5 [bnc#355798]
- merged a spec with jpackage 1.7
  - the ant arguments was splitted to several lines
  - new BuildRequires: 
    - classpathx-javamail
    - geronimo-jaf
    - geronimo-jms
  - a new patches to break of a dependendy on Sun's HtmlAdaptorServer 
    (replaced by HttpAdaptor from mx4j package)
  - added a gjc build branch
- created an autogenerated -mini specfile used for bootstrap (hint from sbrabec@suse.cz)
  - added an explicit provides of log4j symbol for log4j-mini (automatically by script)
- replaced a name `macro' by `real', because the -mini package has a different name
- disable the javadoc and manual subpackages for -mini build

-------------------------------------------------------------------
Thu Jun  7 15:35:03 CEST 2007 - sbrabec@suse.cz

- Removed invalid desktop Category "Application" (#254654).

-------------------------------------------------------------------
Fri May 18 11:48:26 CEST 2007 - dbornkessel@suse.de

- removed mx4j BuildReq to avoid build cycle ... apparently it was not used at compile time 

-------------------------------------------------------------------
Tue May  8 17:10:47 CEST 2007 - dbornkessel@suse.de

- use mx4j instead of jmx 

-------------------------------------------------------------------
Wed Feb 15 10:14:39 CET 2006 - stbinner@suse.de

- add GenericName to .desktop files

-------------------------------------------------------------------
Wed Jan 25 21:46:52 CET 2006 - mls@suse.de

- converted neededforbuild to BuildRequires

-------------------------------------------------------------------
Tue Nov  8 15:27:34 CET 2005 - jsmeix@suse.de

- Current version 1.2.12 from JPackage.org

-------------------------------------------------------------------
Thu Sep 29 00:25:43 CEST 2005 - dmueller@suse.de

 - add norootforbuild

-------------------------------------------------------------------
Thu Nov 25 02:36:46 CET 2004 - ro@suse.de

- added suse_update_desktop_file 

-------------------------------------------------------------------
Thu Sep 23 14:19:10 CEST 2004 - mskibbe@suse.de

- change specfile(suse_update_desktop_file) 

-------------------------------------------------------------------
Thu Sep 16 14:26:11 CEST 2004 - skh@suse.de

- Fix prerequires for javadoc subpackage.

-------------------------------------------------------------------
Thu Sep  2 17:44:52 CEST 2004 - skh@suse.de

- Initial package created with version 1.2.8 (JPackage 1.5)

openSUSE Build Service is sponsored by