-
Notifications
You must be signed in to change notification settings - Fork 1
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
base: master
Are you sure you want to change the base?
Conversation
7c99b92
to
ed2490f
Compare
9680c3b
to
2fd58b8
Compare
src/main/java/uk/gov/companieshouse/extensions/api/attachments/file/FileTransferApiClient.java
Show resolved
Hide resolved
LinkedMultiValueMap<String, Object> multipartReqMap = new LinkedMultiValueMap<>(); | ||
multipartReqMap.add(UPLOAD, fileHttpEntity); | ||
return multipartReqMap; | ||
String getFileExtension(String filename) { |
There was a problem hiding this comment.
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
src/main/java/uk/gov/companieshouse/extensions/api/config/ApplicationConfiguration.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
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 declareduk.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
2fd58b8
to
3e31c86
Compare
SonarQube Quality Gate |
Integrate ECS File Transfer and replace the lambda file transfer with private-api-sdk framework, resolves https://companieshouse.atlassian.net/browse/JU-1277