Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Servlet-filter Prevent the deletion of specific custom fields

hagop hadji akian December 12, 2023

Hello, 
I am trying to add a 'servlet filter' to prevent the deletion of specific custom fields.

It seems that when attempting to delete a custom field through the API (/rest/api/2/customFields) on the secure/admin/ViewCustomFields.jspa page, the error message is not being displayed successfully despite the prevention mechanism working as intended. The issue becomes apparent specifically after transitioning to a Data Center environment.



Could you please give me some practical techniques to solve this mystery?


additional info:
url patterns used:

<url-pattern>/rest/api/2/customFields*</url-pattern>
To display the message:
httpResponse.getWriter().write("Unable To Delete !");



0 answers

Suggest an answer

Log in or Sign up to answer