Skip to content

[MBUILDCACHE-86] Bugfix and enhancements with the restoration of outputs on disk #318

Description

@jira-importer

Kevin Buntrock opened MBUILDCACHE-86 and commented

Fixes :

  • Files containing an underscore in their name can't be restored in the cache directory correctly (not in the same directory location).
  • The cache is able to extract/restore files in locations outside the project. I guess the extraction part is not a vulnerability since someone with commit permissions can guess other ways to extract data. But the possibility of restoring at any place on the disk looks pretty dangerous to me if a remote cache server is compromised.

Enhancements :

  • Possibility to restore artefacts on disk, with a dedicated property : maven.build.cache.restoreOnDiskArtefacts (default to true). Meaning in the project directory, as opposed to the cache directory.
    • IDE integration and use of the cache locally in developement is way easier. It is now possible to retrieve a cached jar in the "target" directory.
  • Introduce "globs" to filter extra attached outputs by filenames.

Remote Links:

1 votes, 3 watchers

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions