CodeSOD: A Swift Update

This post was originally published on this site

The Daily WTF

Banks are uniquely identified via a “SWIFT Code”. It’s an ISO Standard. Having an accurate SWIFT code for a given bank is of vital importance to anyone doing financial transactions. With mergers, moves, new branches, and so on, the SWIFT codes you do business with won’t change often, but they will change.

Thus, Philip wasn’t terribly surprised when he got a request to update a pile of SWIFT codes. He couldn’t make the change via the database, though, as no one had permission to do that. He couldn’t edit it through an application UI, because no one had ever built one.

Instead, he had to check out a Java web service from SVN, modify the hard-coded values in the code, deploy the service to production (an entirely manual process), and then invoke the web service via cURL.

@GET @Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML }) @Path(“/writeAccountTableOther/{namespace}”) public Response writeAccountTableOther(@PathParam(“namespace”) String namespace)

To read the full article click on the 'post' link at the top.