[BUG] PUT https://localhost:8443/api/codeTemplateLibraries?override=true does not work #4473
Labels
enhancement
New feature or request
Internal-Issue-Created
An issue has been created in NextGen's internal issue tracker
RS-4984
triaged
Describe the bug
A clear and concise description of what the bug is. Is this consistently reproducible?
PUT https://localhost:8443/api/codeTemplateLibraries?override=true does not work
To Reproduce
Setup steps (if required). Example:
Expected behavior
A clear and concise description of what you expected to happen.
Code templates to be replaced.
Actual behavior
A clear and concise description of what actually happens.
Code templates are not replaced but get a http status code 200 as if the operation was successful.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
Workaround(s)
Are there one or more workarounds for this issue currently? none
Additional context
Add any other context about the problem here.
Edit:
After digging into this I found that
PUT /codeTemplateLibraries
callsupdateCodeTemplateLibraries
which only updates the libraries and not the actual templates. Where asPOST /codeTemplateLibraries/_bulkUpdate
callsupdateLibrariesAndTemplates
which first updates the templates and then callsupdateLibrariesAndTemplates
. ThePOST /codeTemplateLibraries/_bulkUpdate
is overly complex and has no useable examples and likely no one even uses (IMO). It would be very useful if the simple replace allPUT /codeTemplateLibraries
could be fixed.The text was updated successfully, but these errors were encountered: