DP-3T / dp3t-sdk-backend

The backend implementation for DP3T
Mozilla Public License 2.0
199 stars 87 forks source link

Specify format of UserAgent-Header #273

Open ubamrein opened 4 years ago

ubamrein commented 4 years ago

With the new release, the android sdk changed the header by appending the version of the used EN-Framework. Currently, we are checking for exactly 5 parts as can be seen here:

https://github.com/DP-3T/dp3t-sdk-backend/blob/288d099b9ed3e752c382a273289668a466fe5aeb/dpppt-backend-sdk/dpppt-backend-sdk-ws/src/main/java/org/dpppt/backend/sdk/ws/insertmanager/InsertManager.java#L107

For now, we should change the condition to >=5, to account for the added properties.

I think ultimately we should sit together with the app-sdk people and define a specific format (e.g. a map) to make the parsing more robust to changes and additions.