Fixed of receiving 'function' variable (#2860)

* fixed of receiving function variable

* change CHANGELOG.md

Co-authored-by: Dmitriy Oparin <dmitriyx.oparin@intel.com>
main
DmitriyOparin 5 years ago committed by GitHub
parent 88f494a098
commit b6c37ec44f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -39,6 +39,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- -
### Fixed ### Fixed
- More robust execution of nuclio GPU functions by limiting the GPU memory consumption per worker (<https://github.com/openvinotoolkit/cvat/pull/2714>) - More robust execution of nuclio GPU functions by limiting the GPU memory consumption per worker (<https://github.com/openvinotoolkit/cvat/pull/2714>)
- Kibana startup initialization (<https://github.com/openvinotoolkit/cvat/pull/2659>) - Kibana startup initialization (<https://github.com/openvinotoolkit/cvat/pull/2659>)
- The cursor jumps to the end of the line when renaming a task (<https://github.com/openvinotoolkit/cvat/pull/2669>) - The cursor jumps to the end of the line when renaming a task (<https://github.com/openvinotoolkit/cvat/pull/2669>)
@ -52,6 +53,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Fixed cuboid perpective change (<https://github.com/openvinotoolkit/cvat/pull/2733>) - Fixed cuboid perpective change (<https://github.com/openvinotoolkit/cvat/pull/2733>)
- Annotation page popups (ai tools, drawing) reset state after detecting, tracking, drawing (<https://github.com/openvinotoolkit/cvat/pull/2780>) - Annotation page popups (ai tools, drawing) reset state after detecting, tracking, drawing (<https://github.com/openvinotoolkit/cvat/pull/2780>)
- Polygon editing using trailing point (<https://github.com/openvinotoolkit/cvat/pull/2808>) - Polygon editing using trailing point (<https://github.com/openvinotoolkit/cvat/pull/2808>)
- Fixed of receiving function variable (<https://github.com/openvinotoolkit/cvat/pull/2860>)
### Security ### Security

@ -605,7 +605,7 @@ class RequestViewSet(viewsets.ViewSet):
self.check_object_permissions(self.request, db_task) self.check_object_permissions(self.request, db_task)
except (KeyError, ObjectDoesNotExist) as err: except (KeyError, ObjectDoesNotExist) as err:
raise ValidationError( raise ValidationError(
'`{}` lambda function was run '.format(function) + '`{}` lambda function was run '.format(request.data.get('function', 'undefined')) +
'with wrong arguments ({})'.format(str(err)), 'with wrong arguments ({})'.format(str(err)),
code=status.HTTP_400_BAD_REQUEST) code=status.HTTP_400_BAD_REQUEST)

Loading…
Cancel
Save