Erronous sync window definition in appproject causes nul pointer dereference when syncing apps #10071
Open
3 tasks done
Labels
bug
Something isn't working
Checklist:
argocd version
.Describe the bug
When in an appproject object a sync window is defined with an hour value that is not correct, e.g. 6-24 instead of 6-0, syncing of apps in the appproject fail on the cli. An error is thrown on the cli and in the argocd-server logs. The error shows that the sync failed but leaves no indication what the cause is.
I have tested this with versions 2.4.3, 2.4.6 and 2.4.7.
To Reproduce
In an appproject define a sync window with an incorrect time schedule. E.g.
The error being the '24'. Valid values are 0-23.
After doing this all apps that are in the project can't be synced both on the cli and webui.
Expected behavior
Maybe an error pointing out that the sync window schedule is incorrect.
Version
Logs
The argocd cli gives an error:
In the argocd-server this is logged :
The text was updated successfully, but these errors were encountered: