Repository navigation
[FIX][COMMON][MODULE][EUREKA] Restore master build - #5510
Merged
Merged
Conversation
…ECURE error code, fix missing import, apply style fixes Add CRYPT_KEY_INSECURE(11036) to LinkisModuleErrorCodeSummary; referenced by ServerConfiguration.scala since bb26ad3 but never defined Import CommonVars in SecurityFilter.scala (used since 41c025d without it) Apply google-java-format / scalafmt fixes across TicketCipher, ServerConfiguration, SSOUtils, SecurityFilterTest and EurekaSecurityConfig so spotless-check passes again Fixes apache#5509
…stance entries The 'instance' rows of the datasource-type-key INSERT statements carried 17 values against a 16-column list (one extra NULL), breaking the mysql script load in CI with ERROR 1136 (first failure reported at line 670). Remove the extra NULL from all 13 affected rows; a full-file audit now reports zero column-count mismatches.
linkis-dist hardcoded org.apache.hadoop:hadoop-hdfs-client for the default Hadoop 2.7.2 profile, but that artifact does not exist on Maven Central (404), failing the build at linkis-dist with 'Could not resolve dependencies'. The root pom already provides the hadoop-hdfs-client.artifact property for this exact purpose (hadoop-hdfs for 2.7.x, switched to hadoop-hdfs-client by the hadoop-3.3 profiles) and linkis-common uses it; linkis-dist now follows the same convention. Verified on Maven Central: hadoop-hdfs:2.7.2 (200), hadoop-hdfs-client:3.3.4 (200).
'join -t : -o 1.1 2.1' passes 2.1 as a separate argument, so join treats it as FILE1, known-dependencies.txt as FILE2, and fails with 'unexpected argument .../current_dependencies.txt found' — the check has been failing with this script error on every PR. Quote the -o field list so the format is a single argument and the check can actually run.
…ndencies.txt With the join invocation fixed, the third-party dependencies check now actually compares the runtime dependency list against the known list and reports 48 artifacts introduced on master that were not registered yet (spring-boot 2.7.18 stack, spring-security 5.7.11, micrometer 1.9.17, reactor-netty 1.0.39, netty-incubator-quic, libthrift 0.23.0, janino 3.1.10, httpclient5/httpcore5 5.x, jaxb-runtime 2.3.9, jackson-module-scala 2.15.0, thymeleaf 3.1.5, tomcat-embed-el 9.0.83, commons-compress 1.26.0). Regenerated per tool/dependencies/regenerate_konwn_dependencies_txt.sh (union of the previous list and the current runtime dependency tree, 1165 -> 1213 entries, additions only). All added artifacts are permissively licensed (Apache-2.0 / BSD-3-Clause / EDL-1.0).
…ndencies.txt With the join invocation fixed, the third-party dependencies check now actually compares the runtime dependency list against the known list and reports 48 artifacts introduced on master that were not registered yet (spring-boot 2.7.18 stack, spring-security 5.7.11, micrometer 1.9.17, reactor-netty 1.0.39, netty-incubator-quic, libthrift 0.23.0, janino 3.1.10, httpclient5/httpcore5 5.x, jaxb-runtime 2.3.9, jackson-module-scala 2.15.0, thymeleaf 3.1.5, tomcat-embed-el 9.0.83, commons-compress 1.26.0). Regenerated per tool/dependencies/regenerate_konwn_dependencies_txt.sh (union of the previous list and the current runtime dependency tree, 1165 -> 1213 entries, additions only). All added artifacts are permissively licensed (Apache-2.0 / BSD-3-Clause / EDL-1.0).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is the purpose of the change
Master fails to compile in
linkis-module— the nightly "Publish Snapshot" workflow can neverreach the deploy stage (it currently dies at compile, blocking the INFRA-28709
verification). Four Scala compilation errors, two independent defects left
behind by the July/August security hardening series, plus long-standing
spotless-checkviolations:CRYPT_KEY_INSECUREinServerConfiguration.scala:80-81, but no such entryexists in
LinkisModuleErrorCodeSummary(repo-wide search finds only thereference, no definition)
CommonVarsatSecurityFilter.scala:158,164without adding the import
Evidence: run https://github.com/apache/linkis/actions/runs/45771756417 and
build-backend (spark-3) on PR #5499 fail with exactly these errors.
Related issues/PRs
Close #5509
Related: INFRA-28709 (Apache Infra ticket, snapshot publish credentials)
Brief change log
CRYPT_KEY_INSECURE(11036, ...)entry toLinkisModuleErrorCodeSummary;CommonVarsimport inSecurityFilter.scala;TicketCipher,ServerConfiguration,SSOUtils,SecurityFilterTestandEurekaSecurityConfigsospotless-checkpasses again.Checklist