Skip to content

Latest commit

 

History

History
314 lines (221 loc) · 12.3 KB

CHANGELOG.md

File metadata and controls

314 lines (221 loc) · 12.3 KB

Changelog

2.11.1 (2022-04-05)

  • file command
    • added exclude option
    • fixed paths under htdocs: for directory arguments, they were absolute paths, now they are relative
  • improved error message for invalid gitea url
  • fixed usage message for file

2.11.0 (2022-02-04)

  • added Gitea support for IndexModules
  • host properties
    • added modern property to reject classic modules on publishing
    • added bitbucketHosts property to specify (comma-separated) the git hosts running bitbucket; everything else is consideded gitea; default is bitbucket.1and1.org because old lavender versions would reject this property
  • changed system property lavender.bitbucket.wirelog to lavender.wirelog; also works for gitea
  • dumped explicitly testing for and rejecting pustefix.relative
  • updated debian dependencies from Java 8 to 11
  • no parent pom update, because it would compile for java 16, which is not yet an option (shops and bkshops use Java 15; telesales uses Java 13 Tower only has Java 11)

2.10.1 (2021-05-11)

  • fixed Bitbucket Module banchOrTag configuration

2.10.0 (2021-05-11)

CAUTION - breaking change: requires Java 11+

Migration steps:

  • update dependency version to 2.10.0
  • update build process to generate lavender.properties with lavender-plugin

Changes

  • added IndexModule and lavender-plugin to configure it
  • environment variable LAVENDER_REDIRECTS replaces LAVENDER_SOURCES: it defines a comma-separated url prefix -> url prefix mapping
  • added info command
  • renamed branch master to main, https://github.com/github/renaming
  • cleanup lavender.properties loading code:
    • dumped scan-legacy command
    • introduced new lavender.properties format "modern" (the previous format is now called classic)
      • module fields: name, scmurl, revision, path, includes, excludes, lavenderize, resourcePathPrefix, targetPathPrefix
      • notes
        • name is explicit now
        • connection is now called scmurl
        • tag is now called revision
        • lavendelize is now called lavenderize
        • connectionDevel is gone
    • for classic properties
      • prod- and devel connections have to be the same
      • reject properties with multiple prefixes
      • application lavender.properties with legacy are rejected as unknown (it was rejected since Lavender 2.8.0; I also checked the logs for 2021)
      • lavender.properties with type properties are rejected
        (type had no effect and wasn't used in latest parent poms)
      • lavender.properties with pustefix.relative are rejected (they have been rejected for application properties; they were still supported for module properties)
      • removed unused module loading code
  • dumped pws work-around that tried to load pominfo.properties from target/classes
  • fixed application warning with Java 16: the launcher no longer checks the Java version, and it no longer sets the illegal-access option
  • big dependency update
    • update parent 1.3.4 to 1.4.2 (compiles for Java 11)
    • update sushi 3.2.1 to 3.3.0 (compiled for Java 11)
    • update svnkit 1.9.3 to 1.10.3
    • update slf4j 1.7.25 to 1.7.30
    • update jsch 0.1.54 to 0.1.55
    • update jsch.agentproxy 0.0.7 to 0.0.9
    • update gson 2.8.4 to 2.8.6
    • update inline 1.1.1 to 1.2.0
    • update test dependencies to fix build on Java 16
      • mockito 1.8.5 to 3.9.0
      • tomcat 7.0.90 to 7.0.108
    • other test dependency updates:
      • update junit 5.7.0 to 5.7.1
      • dumped httpcore 4.3.1, it's not needed
    • dumped jaxb dependencies, they were needed by Tomcat in integration tests, but this was solved by compiling for Java 11

2.9.1 (2021-01-14)

  • update junit 4.12 to 5.7.0
  • support og:image in meta-tags (thanks to Marcel E)

2.9.0 (2020-08-18)

  • changed HostProperties.network from Node to URI to avoid svn access (for Ionos Shops) CAUTION: this is an incompatible api change (although it's unlikely that this field is used by none-lavender code)

2.8.1 (2020-06-17)

  • added support for (thanks to Andreas P)
  • updated parent 1.3.2 to 1.3.4

2.8.0 (2019-12-11)

  • reject legacy configuration
  • softInvalidateEntries invalidates after 10 seconds now (was 5)
  • Bitbucket support
    • fixed missing images due to lavender.properties path not removed from accessPath (thanks to Alex M)
    • fixed missing images if repository history longer then 1000 entries (for Alex M)
    • fixed encoding problem in userInfo (for Lars H)
    • added printlns to detect api bottlenecks

2.7.5 (2019-11-25)

  • Bitbucket support
    • fixed lastCommit to also check for tags
    • tweaked log output

2.7.4 (2019-11-20)

  • Bitbucket support
    • added lavender.bitbucket.wirelog property to enable a wire log
    • fixed handling of JsonNull in page results (Bitbucket return nextPage null without indicating this by isLastPage)

2.7.3 (2019-11-08)

  • fixed corrupt images server by DevelFilter

2.7.2 (2019-02-13)

  • added support for git lfs (contributed by Lars Hutzelmann)
  • rewrite img/@srcset and source/@srcset (contributed by Marcus Trautwirg)
  • fixed scm matching for secrets selection
  • fixed anonymous bitbucket access
  • fixed NumberFormatException when creating released git modules
  • update lazy-foss-parent 1.0.4 to 1.2.0
  • checkstyle fixes
  • IntelliJ code inspection fixes

2.7.1 (2018-11-22)

  • do not rewrite img/@src attributes if their value starts with data: (case sensitive)
  • fixed Java Module detection in launcher script: Java 1.7 does not have modules
  • update sushi 3.1.7 to 3.2.0
  • update lazy-foss-parent 1.0.2 to 1.0.4

2.7.0 (2018-11-07)

  • added support for bitbucket modules: derive you pom from at least frontend-parent 3.4.0 or application-parent-3.10.0; note that loading resources from the server does not see local changes that have not been pushed yet;

    • caution: Bitbucket passwords do not equal intranet passwords; it's usually not defined because ssh is used for cloning a repository, ask Frank Kleine how to set it
  • DevelopmentFilter

    • use etags only (based on Resource.getContentId), last-modified header is gone
  • cli

    • dumped -lastconfig switch, it was not used by puc, and you can now reconfigure network in the host.properties
    • generalized svn command to scm; the first argument is now the scm name defined in host.properties
    • simplified command line by aligning the arguments passed to the various publishing commands:
      • 'war': it's just war cluster docroot index now
      • 'scm': it's just scm cluster docroot index now
      • 'file': mandatory arguments are now archive cluster docroot index
  • improved locking of cluster hosts

    • remove connection locks on ctrl-c (via shutdown hook)
    • lock files now contain user, machine and command being executed
  • caching:

    • dumped cache lock - use atomic reads and writes instead
    • introduced md5 cache maintained by Distributor for all modules
    • changed svn entry cache: dumped md5, size and last modified fields; svn caches entries now reside under /svn
  • module configuration cleanup

    • svn properties generalized to scm properties (old svn properties still work (they are detected by the pustefix.relative property), but both application- and frontend-parents should be updated soon; they have to be updated to get bitbucket support)
      • svn prefix changed to scm
      • dumped scm.foo.relative, it was always empty
      • added scm.foo.path to configure the path formerly appended to the url or devel url (typically src/main/resources)
      • replaced revision by tag
      • dumped pustefix.* properties; thus, it's no longer possible to configure embedded resources; lavender reports an error if legacy descriptors contain a matchable filter
    • added a legacy property to applications properties to configure legacy modules - i.e. modules that don't have a module descriptor; use lavender scan-legacy to search a project for legacy modules
    • pominfo.properties, lavender.properties and resource index are now required for lavender modules
  • admin configuration cleanup

    • system properties -> host properties
      • changed terminology: system properties are now called host properties (to better distinguish them from Java's system properties)
      • renamed lavender.properties to lavender/host.properties; also renamed the corresponding system property lavender.properties to lavender.hostproperties and the environment variable LAVENDER_PROPERTIES to LAVENDER_HOSTPROPERTIES
      • added network property to configure the location of the network.xml
      • instead of a single svn url, you can now configure a map of scm urls (including git urls)
      • configurable secrets path: secrets defines a comma-separated (CAUTION: not colon, because that's used in fault file names) path where to search for secrets files; wildcard allowed
    • renamed net.xml to network.xml
    • in network.xml
      • renamed docroot type to docroot name
      • renamed docroot docroot to docroot documents
      • merge aliases into docroot
  • added java 11 support

    • fixed hardcoded references to com.sun.zipfs
    • added explicit javax.xml.bind dependencies
    • launcher adds the respective java 9+ options when it its detected
  • dependency updates:

    • sushi 3.1.6 to 3.1.7
    • svnkit 1.8.5 to 1.9.3
    • slf4j 1.7.5 to 1.7.25

2.6.2 (2018-03-12)

  • fixed file creation problem introduced in 2.6.1: infinite loop if _tmp_1 exists (thanks to Marcus T)

2.6.1 (2017-09-01)

  • fixed permission problem on svn cache: create files with permissions based on umask (2.6.0 created files with rw- --- --- permissions)

2.6.0 (2017-08-29)

  • added fsck -repair-all-idx option
  • CssProcessor url rewrite fix: don't try to rewrite data urls (thanks to Julian B)
  • Updated Sushi 2.8.x to 3.1.x and Inline 1.1.1 and Metadata 1.0.0 (thanks to Marcus T)
  • Updated Jsch 0.1.51 to 0.1.54

2.5.5 (2016-12-21)

q

  • Added remove-entry command

2.5.4 (2016-10-24)

  • Fix CSS image urls with quotes, whitespaces and escaped chars

2.5.3 (2016-10-20)

  • production/development mixed mode can be triggered via system property 'lavender.allowProdDevMixMode'

2.5.2 (2016-09-30)

  • Also use production and development filter in test environment.

2.5.1 (2016-09-12)

2.5.0 (2016-03-22)

  • Make Lavender filter reloadable
  • Refactored Lavender filter by ProductionFilter and DevelopmentFilter

2.4.2 (2016-02-11)

  • Update sushi 2.8.18 to 2.8.19 to get support for configurable ssh ports.

2.4.1 (2016-01-26)

  • Fixed tailing space problem when loading devel svn caches.

2.4.0 (2016-01-16)

  • Dumped /opt/ui from binary and properties path. Adjusted properties search path accordingly.
  • Print servlet filter startup exceptions to stderr because logging might not be configured yet.
  • Properly unlock svn cache when servlet filter startup fails with an exception.
  • Properly document and check the first file command argument. It's now called archive.
  • Improved search order to locate lavender.properties: It's now what you'll normally expect:
    1. "lavender.properties" system property
    2. "LAVENDER_PROPERTIES" environment variable
    3. classpath
    4. ~/.lavender.properties
    5. /etc/lavender.properties Thus, there's a new system property that's searched first. And the classpath is now searched before the home directory.
  • Support configurable uri for hosts. This replaces the option to specify a path.

2.3.0 (2015-08-04)

  • Added revision property to svn properties to pin a module to one revision.
  • lavender.properties: Added optional cache property to configure svn cache directory. Default is ~/.cache/lavender. The cache directory may be shared, it's properly locked and cache files are deleted before writing to avoid permission problems.
  • Read svn resource with the scanned revision, not with latest revision.
  • The war command takes on war argument now, and this war file is modified. This is an incompatible change, and this is the reason for the minor version bump.
  • Speedup Svn modules: fixed path problem that prevented some caching; read without tmp files; get rid of checkPath call; cache scan results; append to war using TrueZip.

(See https://github.com/mlhartme/lavender/blob/lavender-2.2.6/src/changes/changes.xml for older changes)