77184b2f98f8895924c62e13a1aa307e52d32b99,volttron/platform/web/csr_endpoints.py,CSREndpoints,_csr_request_new,#CSREndpoints#Any#Any#,50
Before Change
json_response = dict(status="ERROR",
message="CSR must start with instance name: {}".format(
get_platform_instance_name()))
Response(json.dumps(json_response),
content_type="application/json",
headers={"Content-type": "application/json"})
csr_file = self._certs.save_pending_csr_request(env.get("REMOTE_ADDR"), identity, csr)
if self._auto_allow_csr:
After Change
try:
if json_response["cert"]:
json_response["cert"] = json_response["cert"].decode("utf-8")
response = Response(jsonapi.dumps(json_response),
content_type="application/json",
headers={"Content-type": "application/json"})
except BaseException as e:
_log.error(f"ERROR creating Response {e}")
return response
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: VOLTTRON/volttron
Commit Name: 77184b2f98f8895924c62e13a1aa307e52d32b99
Time: 2019-12-31
Author: chandrika@pnnl.gov
File Name: volttron/platform/web/csr_endpoints.py
Class Name: CSREndpoints
Method Name: _csr_request_new
Project Name: comic/grand-challenge.org
Commit Name: 05a86908b5d9b1c90b7f605ce42827ace81b7445
Time: 2020-01-17
Author: haimasree.diag@gmail.com
File Name: app/grandchallenge/cases/views.py
Class Name: RawImageUploadSessionViewSet
Method Name: process_images
Project Name: chakki-works/doccano
Commit Name: 006181e72a517705f690e188238c644476932dba
Time: 2018-08-08
Author: light.tree.1.13@gmail.com
File Name: app/server/api.py
Class Name: ProjectViewSet
Method Name: progress