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

Integrate ECS File Transfer #140

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vaibhavcompanieshouse
Copy link
Contributor

Integrate ECS File Transfer and replace the lambda file transfer with private-api-sdk framework, resolves https://companieshouse.atlassian.net/browse/JU-1277

@vaibhavcompanieshouse vaibhavcompanieshouse force-pushed the JU-874/File-Transfer-Changes branch from 7c99b92 to ed2490f Compare February 25, 2025 12:37
@vaibhavcompanieshouse vaibhavcompanieshouse force-pushed the JU-874/File-Transfer-Changes branch 6 times, most recently from 9680c3b to 2fd58b8 Compare March 4, 2025 10:15
LinkedMultiValueMap<String, Object> multipartReqMap = new LinkedMultiValueMap<>();
multipartReqMap.add(UPLOAD, fileHttpEntity);
return multipartReqMap;
String getFileExtension(String filename) {

Choose a reason for hiding this comment

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

Couple of comments on the obtaining the extension.

  • Should the method be private
  • What if the filename starts or ends with a .
  • Are we likely to have a filename set to null

Choose a reason for hiding this comment

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

I've run mvn dependency:analyze and it suggests

  • uk.gov.companieshouse:api-sdk-java should be declared
  • uk.gov.companieshouse:environment-reader-library is declared but not used (worth checking incase it's no longer required)

Running mvn versions:display-dependency-updates -DprocessDependencyManagement=false -DprocessPlugins=false -DskipTests has flagged a few dependencies could be updated to newer versions. Spring boot for example has now released 3.4.3

Integrate ECS File Transfer and replace the lambda file transfer with private-api-sdk framework, resolves https://companieshouse.atlassian.net/browse/JU-1277
@vaibhavcompanieshouse vaibhavcompanieshouse force-pushed the JU-874/File-Transfer-Changes branch from 2fd58b8 to 3e31c86 Compare March 5, 2025 17:31
@chsonarqubeprchecks
Copy link

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.

3 participants