Program: 93485
Project: 93485
Buggy source:
/** 
 * partial update db properties
 * @param exchange
 * @param context
 * @throws Exception
 */
@Override public void handleRequest(HttpServerExchange exchange,RequestContext context) throws Exception {
  if (context.getDBName().isEmpty() || context.getDBName().startsWith("String_Node_Str")) {
    ResponseHelper.endExchangeWithMessage(exchange,HttpStatus.SC_NOT_ACCEPTABLE,"String_Node_Str");
    return;
  }
  DBObject content=context.getContent();
  if (content == null) {
    ResponseHelper.endExchangeWithMessage(exchange,HttpStatus.SC_NOT_ACCEPTABLE,"String_Node_Str");
    return;
  }
  if (content instanceof BasicDBList) {
    ResponseHelper.endExchangeWithMessage(exchange,HttpStatus.SC_NOT_ACCEPTABLE,"String_Node_Str");
    return;
  }
  if (content.containsField(RepresentationTransformer.RTS_ELEMENT_NAME)) {
    try {
      RepresentationTransformer.getFromJson(content);
    }
 catch (    InvalidMetadataException ex) {
      ResponseHelper.endExchangeWithMessage(exchange,HttpStatus.SC_NOT_ACCEPTABLE,"String_Node_Str" + ex.getMessage(),ex);
      return;
    }
  }
  ObjectId etag=RequestHelper.getWriteEtag(exchange);
  if (etag == null) {
    ResponseHelper.endExchangeWithMessage(exchange,HttpStatus.SC_CONFLICT,"String_Node_Str" + Headers.IF_MATCH + "String_Node_Str");
    return;
  }
  OperationResult result=getDatabase().upsertDB(context.getDBName(),content,etag,true,true);
  if (result.getEtag() != null) {
    exchange.getResponseHeaders().put(Headers.ETAG,result.getEtag().toString());
  }
  if (context.getWarnings() != null && !context.getWarnings().isEmpty()) {
    sendWarnings(result.getHttpCode(),exchange,context);
  }
 else {
    exchange.setResponseCode(result.getHttpCode());
  }
  exchange.endExchange();
  LocalCachesSingleton.getInstance().invalidateDb(context.getDBName());
}

Fixed version (ground truth):
/** 
 * partial update db properties
 * @param exchange
 * @param context
 * @throws Exception
 */
@Override public void handleRequest(HttpServerExchange exchange,RequestContext context) throws Exception {
  if (context.getDBName().isEmpty() || context.getDBName().startsWith("String_Node_Str")) {
    ResponseHelper.endExchangeWithMessage(exchange,HttpStatus.SC_NOT_ACCEPTABLE,"String_Node_Str");
    return;
  }
  DBObject content=context.getContent();
  if (content == null) {
    ResponseHelper.endExchangeWithMessage(exchange,HttpStatus.SC_NOT_ACCEPTABLE,"String_Node_Str");
    return;
  }
  if (content instanceof BasicDBList) {
    ResponseHelper.endExchangeWithMessage(exchange,HttpStatus.SC_NOT_ACCEPTABLE,"String_Node_Str");
    return;
  }
  if (content.containsField(RepresentationTransformer.RTS_ELEMENT_NAME)) {
    try {
      RepresentationTransformer.getFromJson(content);
    }
 catch (    InvalidMetadataException ex) {
      ResponseHelper.endExchangeWithMessage(exchange,HttpStatus.SC_NOT_ACCEPTABLE,"String_Node_Str" + ex.getMessage(),ex);
      return;
    }
  }
  ObjectId etag=RequestHelper.getWriteEtag(exchange);
  if (etag == null) {
    ResponseHelper.injectEtagHeader(exchange,context.getDbProps());
    ResponseHelper.endExchangeWithMessage(exchange,HttpStatus.SC_CONFLICT,"String_Node_Str" + Headers.IF_MATCH + "String_Node_Str");
    return;
  }
  OperationResult result=getDatabase().upsertDB(context.getDBName(),content,etag,true,true);
  if (result.getEtag() != null) {
    exchange.getResponseHeaders().put(Headers.ETAG,result.getEtag().toString());
  }
  if (context.getWarnings() != null && !context.getWarnings().isEmpty()) {
    sendWarnings(result.getHttpCode(),exchange,context);
  }
 else {
    exchange.setResponseCode(result.getHttpCode());
  }
  exchange.endExchange();
  LocalCachesSingleton.getInstance().invalidateDb(context.getDBName());
}