Affects Version/s: 7.0.X, 7.1.X, 7.2.X, Master
Component/s: Portal Services
com.liferay.portal.util.PortalImpl#updateImageId consumes 2 parameters - a boolean hasImage and byte bytes.
The hasImage param means to update or delete the image. The bytes param then contains the image to be written when hasImage == true and the bytes is not empty.
The method is used as-is in several local services (Company, Layout, LayoutSet, Organization and User) but with different contract, name and JavaDoc. Example:
The contract in the local service is different. Here the boolean logo doesn't tell the image will be deleted.