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

#1530 added maven settings password decryption #1583

Conversation

jan-vcapgemini
Copy link
Collaborator

@jan-vcapgemini jan-vcapgemini commented Sep 21, 2022

Adresses/Fixes #1530 #1517.

Implements

  • added org.codehaus.plexus sec-dispatcher dependency
  • added org.codehaus.plexus cipher dependency
  • added MavenSettingsUtil
  • added MavenSettingsUtilTest and resources
  • made sure that only template-set.xml files get returned as download links
  • added basic authentication

@devonfw/cobigen

added org.codehaus.plexus sec-dispatcher dependency
added org.codehaus.plexus cipher dependency
added MavenSettingsUtil
added MavenSettingsUtilTest and resources
@github-actions github-actions bot added comp:core Team_CobiGen_Templates These issues will be handeled by the team CobiGen_Templates labels Sep 21, 2022
Copy link
Member

@maybeec maybeec left a comment

Choose a reason for hiding this comment

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

Is there a reason why you put this code into api bundle? I don't see any plugin making use of this code as this should be even hidden from plugin development.

replaced authToken with password
added basic username and password authentication
made sure that only template-set.xml files get returned as download links
added new template-set.xml to ConfigurationConstants
added a valid template-set.xml example to test resource files
removed extra outputs (non template-set.xml) from test assertions
added classifier to Nexus2Response
renamed retrieveDownloadUrls to retrieveTemplateSetXmlDownloadURLs
@jan-vcapgemini jan-vcapgemini marked this pull request as draft September 22, 2022 15:01
fixed credentials not being used
fixed too many httpclient calls being used
added new test for a failed basic authentication
added new test for a failed token authentication
enabled bad url test
removed JsonMappingException because it is already being handled by JsonProcessingException
adjusted log messages (converted to debug, made factory process messages more transparent)
converted RestSearchResponseException status code from string to integer
@sonatype-lift
Copy link

sonatype-lift bot commented Sep 28, 2022

⚠️ 50 God Classes were detected by Lift in this project. Visit the Lift web console for more details.

replaced exception strings with constants
added retrieveRestSearchApiTargetLink method
adjusted SearchResponseException with dynamic message
adjusted tests to check for exception types and message content
@jan-vcapgemini
Copy link
Collaborator Author

This PR is not needed anymore as all of the changes were added to #1585 already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:core Team_CobiGen_Templates These issues will be handeled by the team CobiGen_Templates
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants