commit | 57909c6977bf3960156e6335ca239b142c7be788 | [log] [tgz] |
---|---|---|
author | Luca Milanesio <luca.milanesio@gmail.com> | Wed Jan 04 23:42:14 2023 +0000 |
committer | Luca Milanesio <luca.milanesio@gmail.com> | Wed Jan 04 23:44:25 2023 +0000 |
tree | b6dc27e231f0ebb72e3a75f980190c2a35c43834 | |
parent | f1a74c9fdfef59ab0bd511d1f15ac43ced0b61f6 [diff] |
Return BAD_REQUEST when the REST API throws IllegalArgumentException In Gerrit v3.7, JGit may throw an IllegalArgumentException when the input repository name is invalid. Catch the exception and consider the request as not valid, returning a 400 status code. Change-Id: I39600be3f62541ded1c674feb807b89a96d71c71