Я прочитал документацию, и я получаю REST API GET URL ...Как обновить «Правила обработки» HP FORTIFY через REST
http://localhost:8080/ssc/api/v1/projectVersions/6/resultProcessingRules
Для работы и возвращает список из «Профиль - Правила обработки для моего приложения (через ID 6). , например.
"data": [
{
"displayName": "Require approval if the Build Project is different between scans",
"identifier": "com.fortify.manager.BLL.processingrules.BuildProjectProcessingRule",
"enabled": true,
"displayable": true
}
То, что я не могу добраться до работы команды PUT, чтобы установить это с «включено = истина» на «Enabled = False»
я получить обратно то же сообщение об ошибке каждый раз, когда ...
{
"message": "An unexpected error occurred accessing resource of type Project Version Result Processing Rules.",
"responseCode": 500,
"errorCode": -20010
}
И журнал просто говорит ...
2016-11-27 23:24:40,076 [ERROR] com.fortify.server.platform.endpoints.rest.ProjectVersionResultProcessingRulesController - ApiGeneralResourceException: 'An unexpected error occurred accessing resource of type Project Version Result Processing Rules.' [url: /ssc/api/v1/projectVersions/6/resultProcessingRules]
2016-11-27 23:24:40,077 [WARN] org.springframework.web.servlet.mvc.method.annotation.ExceptionHandlerExceptionResolver - Handler execution resulted in exception: java.lang.String cannot be cast to java.util.List
Может кто-нибудь сказать мне, что правильная нагрузка должна быть для этого Comman д?