{"push_id":769069693,"size":1,"distinct_size":1,"ref":"refs/heads/ovirt-engine-3.6","head":"5c91f845980e39261c46358ae52176854630231e","before":"ea07f038f2238d5d023398c277d724814b218296","commits":[{"sha":"5c91f845980e39261c46358ae52176854630231e","author":{"email":"59e5b8140de97cc91c3fb6c5342dce948469af8c@redhat.com","name":"Juan Hernandez"},"message":"core, restapi: Avoid NPE when there are no provider certificates\n\nCurrently the backend and the RESTAPI generate a NPE when there are no\ncertificates available for a provider, for example if it is using HTTP\ninstead of HTTPS. The backend generates a log error and then returns\nnull as the result of the query. The RESTAPI takes this and assumes that\nit is a list, thus generating the NPE. This patch changes the backend so\nthat it returns an empty list in this case and the RESTAPI so that it\ntolerates null. The result of trying to import certificates after the\npatch will be the error message generated by the backend:\n\n  <fault>\n    <reason>Operation Failed</reason>\n    <detail>[Failed to import provider certificate.]</detail>\n  </fault>\n\nChange-Id: Ie3617dffe56fef88c9267a5471fe41a7ab294254\nBug-Url: https://bugzilla.redhat.com/1255848\nSigned-off-by: Juan Hernandez <juan.hernandez@redhat.com>\n(cherry picked from commit f6af3c25237e4fc8add4f0f0d6be8f5b43cf6366)","distinct":true,"url":"https://api.github.com/repos/oVirt/ovirt-engine/commits/5c91f845980e39261c46358ae52176854630231e"}]}