commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [commons-beanutils] melloware commented on issue #7: BEANUTILS-520: Mitigate CVE-2014-0114 by enabling SuppressPropertiesB…
Date Tue, 01 Oct 2019 18:52:09 GMT
melloware commented on issue #7: BEANUTILS-520: Mitigate CVE-2014-0114 by enabling SuppressPropertiesB…
URL: https://github.com/apache/commons-beanutils/pull/7#issuecomment-537178017
 
 
   Your code is wrong. Change to..
   
   ```java
   BeanMap beanMap = new BeanMap(oldObject); 
   PropertyUtilsBean propertyUtils = new PropertyUtilsBean(); 
   propertyUtils.removeBeanIntrospector(SuppressPropertiesBeanIntrospector.SUPPRESS_CLASS);
   
   for (Object propertyNameObject : beanMap.keySet()) { 
      ...
   }
   ```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message