-
Notifications
You must be signed in to change notification settings - Fork 88
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
#311: dependency updates (spring-boot 2.4.0, spring-cloud to 2020.0.0, cxf to 3.4.1, etc.) #310
Conversation
So I currently see the following options:
As a result I think we can not update to spring-boot 2.4.0 for release |
New version of spring-cloud available: https://repo1.maven.org/maven2/org/springframework/cloud/spring-cloud-dependencies/2020.0.0/ |
Latest error is now Line 50 in 466368d
because |
} | ||
} | ||
} | ||
return "url-not-available-in-cxf-response"; |
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.
maybe we should return null instead?
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.
hopefully we should never get here either...
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.
maybe return "" is even safer to avoid NPE.
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.
Its a private method that is only used in a single place to pass it to getServiceDescription
here:
Line 58 in 0ac5c96
String serviceDetails = this.context.getServiceDescription(operation, url); |
That method honors
null
but not the empty String as the idea was that null
means not available:Line 63 in 0ac5c96
default String getServiceDescription(String operation, String url) { |
However, we could also return "" and also change getServiceDescription
to treat "" just like null
.
Do we need any upgrade script as well for the devonfw ide? Do we already have a ticket and identified the issues to be migrated next to the version numbers? |
@maybeec thanks for your review and approval. |
I will merge this tomorrow but I guess all is fine now. |
This PR implements issue #311 and includes several dependency updates to solve CVEs and be up-to-date:
Besides I included:
Obsolete (all resolved with spring-cloud 2020.0.0): With spring-cloud
Hoxton.SR9
, the kafka stuff breaks into pieces:brave.internal.HexCodec.toLowerHex
to convert a number to its hex value. Why do we need an external lib for this (instead of usingjava.lang.Integer
) and especially from an internal package. However, just the package changed so I could fix this one easily.org.apache.kafka.clients.producer.ProducerRecord
has changed its API in an incompatible way. I have fixed this and hope I did well.The major remaining problem is that spring-cloud is based on a long deprecated class
ConfigurationBeanFactoryMetadata
from spring boot that has been removed in2.4.0
. However this is still included in the latest spring-cloud release.JUnit test therefore fails with:
Real cause is hard to trace but I found it here:
spring-cloud/spring-cloud-config#1543