Details
-
Suggestion
-
Resolution: Unresolved
Description
If an error occurs with the CLI Tool, just the HTTP response code is returned to the user. It would be helpful to include more information if the response from the API includes an error message.
Creating a review with the CLI Tool and a title greater than 255 characters results in the following error which provides no indication of why this is a bad request:
crucible.py CR --title "Sample text to get over 255 characters. Sample text to get over 255 characters. Sample text to get over 255 characters. Sample text to get over 255 characters. Sample text to get over 255 characters. Sample text to get over 255 characters. Sample text to get over 255 characters." Received an unexpected response HTTP Error 400: Bad Request. Please check that http://<SERVER>:8060 is a Crucible server
But, if trying to create a review with a title greater than 255 characters, the REST API returns the following error response:
HTTP/1.1 400 Bad Request
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><error><code>IllegalArgument</code><message>The value 'HD-17399 HC2 only - Crash was becuase of stale reference of unit object in the port object after maincard get deleted. This is only applicable to HC2 becuase of not having BCM on line cards.Solution was not to use the unit_obj reference in port object, rather use the mainboard's unit_obj. read comment section' for the property 'name' is too long. It should have a maximum length of 255</message><stacktrace>java.lang.IllegalArgumentException: The value 'HD-17399 HC2 only - Crash was becuase of stale reference of unit object in the port object after maincard get deleted. This is only applicable to HC2 becuase of not having BCM on line cards.Solution was not to use the unit_obj reference in port object, rather use the mainboard's unit_obj. read comment section' for the property 'name' is too long. It should have a maximum length of 255 at com.cenqua.crucible.hibernate.PropertyLengthCheckerListener.checkEntity(PropertyLengthCheckerListener.java:25) ...
Attachments
Issue Links
- mentioned in
-
Page Loading...