Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

XENOPS-1201 Cleanup ; Added Alfresco 7.x; Dropped Alfresco 7.0 and lower #62

Merged
merged 3 commits into from
Jan 6, 2025

Conversation

todorinskiz
Copy link
Member

  • Dropped Alfresco 5 and 6
  • Added Alfresco 7.1, 7.2, 7.3, 7.4
  • Dropped secret in favor of TLS
  • Dropped obsolete Jar shadowing
  • Dropped obsolete boms
  • Fixed log4j2 bug (limited to docker compose and minimal log4j2.properties config)
  • Fixed bug in integration test where files used for testing were no longer available

extendsFrom(internalPlatform)
}
}
//description = "Alfresco Repository module for ${rootProject.description}"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand why, but gradle couldn't add module.properties when the descriptions were set. Some bug in Alfresco Gradle SDK?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':alfresco-health-processor-platform:testAmp'.

Caused by: org.gradle.api.GradleException: Could not add file '/git/xenit/alfresco-health-processor/alfresco-health-processor-platform/build/processTestModuleProperties/module.properties' to ZIP '/git/xenit/alfresco-health-processor/alfresco-health-processor-platform/build/dist/alfresco-health-processor-platform-0.5.7-SNAPSHOT-test.amp'.

Caused by: groovy.lang.GroovyRuntimeException: Failed to parse template script (your template may contain an error or be trying to use expressions not currently supported): startup failed:
SimpleTemplateScript4.groovy: 1: Unexpected character: '"' @ line 1, column 13.
   out.print("""module.description=Alfresco Repository module for Alfresco Health Processor\: A background processor capable of performing various operations on the nodes in your Alfresco repository, in a batched and controlled manner

….4; Dropped secret in favor of TLS; Dropped obsolete Jar shadowing; Dropped obsolete boms; Fixed log4j2 bug (limited to docker compose and minimal log4j2.properties config; Fixed bug in integration test where files used for testing were no longer available;

javax.net.ssl.SSLContext sslContext = SSLContexts.custom()
.loadKeyMaterial(keyStore, keyPasswordChars)
.loadTrustMaterial(trustStore, (chain, authType) -> true) // Use default trust strategy
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this really what this code is supposed to do? This is unsafe.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you change "Use default trust strategy" to "Accept any certificate" here?

Copy link

@pvriel pvriel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discussed this in person with Zlatin; approved.

@todorinskiz todorinskiz enabled auto-merge January 6, 2025 09:04
Copy link

sonarqubecloud bot commented Jan 6, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
16.9% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@todorinskiz todorinskiz merged commit 50fb86e into master Jan 6, 2025
9 of 10 checks passed
@todorinskiz todorinskiz deleted the XENOPS-1201 branch January 6, 2025 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants