I ran into this over on https://github.com/elastic/elasticsearch/blob/eb22aa1060f065f3403be0532075badc6e44c6f9/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/cluster/action/MigrateToDataTiersAction.java -- there's two (differing) license headers in that one file.
Here's a unix-y incantation to find more of them (not necessarily all of them, and I haven't checked the result for false positives, but it's a good starting off point):
joegallo@galactic:~/Code/elastic/elasticsearch $ git grep 'Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one' | sort | grep java: | cut -d: -f1 | uniq -d
server/src/internalClusterTest/java/org/elasticsearch/search/geo/GeoPointScriptDocValuesIT.java
server/src/main/java/org/elasticsearch/rest/RestCompatibleVersionHelper.java
server/src/main/java/org/elasticsearch/shutdown/PluginShutdownService.java
server/src/main/java/org/elasticsearch/usage/UsageService.java
x-pack/plugin/ccr/src/main/java/org/elasticsearch/xpack/ccr/allocation/CcrPrimaryFollowerAllocationDecider.java
x-pack/plugin/ccr/src/test/java/org/elasticsearch/xpack/ccr/allocation/CcrPrimaryFollowerAllocationDeciderTests.java
x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/cluster/action/MigrateToDataTiersAction.java
x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/authz/accesscontrol/MatchAllRoleBitSet.java
x-pack/plugin/searchable-snapshots/src/internalClusterTest/java/org/elasticsearch/xpack/searchablesnapshots/BaseSearchableSnapshotsIntegTestCase.java
x-pack/plugin/searchable-snapshots/src/internalClusterTest/java/org/elasticsearch/xpack/searchablesnapshots/SearchableSnapshotsLicenseIntegTests.java
x-pack/plugin/spatial/src/internalClusterTest/java/org/elasticsearch/xpack/spatial/search/GeoShapeScriptDocValuesIT.java
x-pack/plugin/spatial/src/internalClusterTest/java/org/elasticsearch/xpack/spatial/search/GeoShapeWithDocValuesQueryTests.java
x-pack/plugin/spatial/src/test/java/org/elasticsearch/xpack/spatial/index/mapper/GeoShapeWithDocValuesFieldMapperTests.java
x-pack/plugin/spatial/src/yamlRestTest/java/org/elasticsearch/xpack/spatial/SpatialClientYamlTestSuiteIT.java
x-pack/plugin/vector-tile/src/yamlRestTest/java/org/elasticsearch/xpack/vectortile/VectorTileClientYamlTestSuiteIT.java
Ideally our license checking infrastructure should reject these -- just fixing them one off isn't awesome because clearly this is a thing that sneaks in sometimes.
/cc @mark-vieira
I ran into this over on https://github.com/elastic/elasticsearch/blob/eb22aa1060f065f3403be0532075badc6e44c6f9/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/cluster/action/MigrateToDataTiersAction.java -- there's two (differing) license headers in that one file.
Here's a unix-y incantation to find more of them (not necessarily all of them, and I haven't checked the result for false positives, but it's a good starting off point):
Ideally our license checking infrastructure should reject these -- just fixing them one off isn't awesome because clearly this is a thing that sneaks in sometimes.
/cc @mark-vieira