nic-chen opened a new pull request #1064:
URL: https://github.com/apache/apisix-dashboard/pull/1064


   Please answer these questions before submitting a pull request
   
   - Why submit this pull request?
   - [x] Bugfix
   - [ ] New feature provided
   - [ ] Improve performance
   
   - Related issues
   fix #1034
   
   ___
   ### Bugfix
   - Description
   The SSL `GET` api does not return the SSL key, so set `ssl.key` to nil, 
which will be saved in the cache. 
   At this time, use the patch method to update the SSL, because the lack of 
the key, it fails the schema verification, and return an error.
   The `ErrorWrapper` use it directly without judging the type of error, which 
eventually leads to panic.
   
   - How to fix?
   
   Set the key to nil after clone `ssl` to avoid affecting the data in the 
cache.
   After judging the error type, do the corresponding treatment before use.
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to