Scenario : For some (comment) text field the server application is internally throwing errors when the field contains contains some specific characters.
Where should the removal of characters be implemented? in the client application or server?
I have tried to look at my old system engineering text book for a similar situation but can not find a case.
All I can think of is that client applications are to implement the minimum logic e.g. age, phone number fields being numeric, name fields not contain numbers ( debatable as celebrities might decide to include numbers in their legal names etc.).
In SOA architecture there could be multiple clients, then the internal data consistency of the server application is being replicated with each client application.
Being asked to remove the data submitted by the user in the client application and then submitting the modified data removes the possibility of server application receiving the original data and storing it and then processing the modified data within the server application domain context only.
I am looking for any references that either this is the correct or incorrect approach,