mirror of
				https://github.com/datahub-project/datahub.git
				synced 2025-10-30 18:26:58 +00:00 
			
		
		
		
	Modify Compliance Suggestion feedback null value handling (#1050)
This commit is contained in:
		
							parent
							
								
									fc3a5319e0
								
							
						
					
					
						commit
						488b88f860
					
				| @ -332,8 +332,8 @@ public class Dataset extends Controller { | ||||
|     try { | ||||
|       JsonNode record = request().body().asJson(); | ||||
|       String feedback = record.hasNonNull("feedback") ? record.get("feedback").asText().toUpperCase() : null; | ||||
|       String uid = record.hasNonNull("uid") ? record.get("uid").asText() : null; | ||||
|       if (uid == null || (!"ACCEPT".equals(feedback) && !"REJECT".equals(feedback))) { | ||||
|       String uid = record.hasNonNull("uid") ? record.get("uid").asText() : ""; | ||||
|       if (!"ACCEPT".equals(feedback) && !"REJECT".equals(feedback)) { | ||||
|         return Promise.promise(() -> badRequest(_EMPTY_RESPONSE)); | ||||
|       } | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Yi (Alan) Wang
						Yi (Alan) Wang