@webapi_check_local_site
    @webapi_login_required
    @webapi_response_errors(DOES_NOT_EXIST, INVALID_FORM_DATA,
                            PERMISSION_DENIED, NOT_LOGGED_IN)
    @webapi_request_fields(
        required=BaseReviewGeneralCommentResource.REQUIRED_CREATE_FIELDS,
        optional=BaseReviewGeneralCommentResource.OPTIONAL_CREATE_FIELDS,
        allow_unknown=True
    )
    def create(self, request, *args, **kwargs):
        try:
            review = resources.review.get_object(request, *args, **kwargs)
        except ObjectDoesNotExist:
            return DOES_NOT_EXIST

        if not resources.review.has_modify_permissions(request, review):
            return self.get_no_access_error(request.user)

        new_comment = self.create_comment(fields=(), review=review, **kwargs)
        review.general_comments.add(new_comment)

        return 201, {
            self.item_result_key: new_comment,
        }
Handle success of the legacy authentication.
dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/webapi/resources/review_general_comment.py/ReviewGeneralCommentResource.create--crossover with--dataset/ETHPy150Open kuri65536/python-for-android/python3-alpha/python-libs/pyxmpp2/ext/legacyauth.py/LegacyClientStream.auth_finish