mirror of
				https://github.com/open-metadata/OpenMetadata.git
				synced 2025-10-26 16:22:09 +00:00 
			
		
		
		
	USer password appears in failing entities (#14269)
This commit is contained in:
		
							parent
							
								
									b530759849
								
							
						
					
					
						commit
						566c36b7f3
					
				| @ -615,14 +615,17 @@ public abstract class EntityRepository<T extends EntityInterface> { | |||||||
|       List<String> jsons = dao.listAfterWithOffset(limitParam, currentOffset); |       List<String> jsons = dao.listAfterWithOffset(limitParam, currentOffset); | ||||||
| 
 | 
 | ||||||
|       for (String json : jsons) { |       for (String json : jsons) { | ||||||
|  |         T parsedEntity = JsonUtils.readValue(json, entityClass); | ||||||
|         try { |         try { | ||||||
|           T entity = setFieldsInternal(JsonUtils.readValue(json, entityClass), fields); |           T entity = setFieldsInternal(parsedEntity, fields); | ||||||
|           entity = setInheritedFields(entity, fields); |           entity = setInheritedFields(entity, fields); | ||||||
|           entity = clearFieldsInternal(entity, fields); |           entity = clearFieldsInternal(entity, fields); | ||||||
|           entities.add(withHref(uriInfo, entity)); |           entities.add(withHref(uriInfo, entity)); | ||||||
|         } catch (Exception e) { |         } catch (Exception e) { | ||||||
|           LOG.error("Failed in Set Fields for Entity with Json : {}", json); |           parsedEntity = clearFieldsInternal(parsedEntity, fields); | ||||||
|           errors.add(String.format("Error Message : %s , %n Entity Json : %s", e.getMessage(), json)); |           String errorEntity = JsonUtils.pojoToJson(parsedEntity); | ||||||
|  |           LOG.error("Failed in Set Fields for Entity with Json : {}", JsonUtils.pojoToJson(errorEntity)); | ||||||
|  |           errors.add(String.format("Error Message : %s , %n Entity Json : %s", e.getMessage(), errorEntity)); | ||||||
|         } |         } | ||||||
|       } |       } | ||||||
|       currentOffset = currentOffset + limitParam; |       currentOffset = currentOffset + limitParam; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Mohit Yadav
						Mohit Yadav