eclipse / hawkbit

Eclipse hawkBit™
https://projects.eclipse.org/projects/iot.hawkbit
Eclipse Public License 2.0
453 stars 187 forks source link

Fix applying createdat less or equal to rollout group filter #1765

Closed avgustinmm closed 1 month ago

avgustinmm commented 1 month ago

in case of x OR y, and createdAt <= was applied to y condition

More detailed:

The problem was that createdAt < rollout.getCreatedAt() was applied to the query with:

query + ";createdat=le=" + createdAt

But if you have 'attrib.x = 1 OR attrib.y = 2' the actual condition becomes 'attrib.x = 1 OR attrib.y = 2;createdat=le=132423'. Then the created at is applied to the attrib.y = 2 with priority. Thus

hawkbit-bot commented 1 month ago

Can one of the admins verify this patch?