Remote Publishing NullPointer because we try to publish passing a null User
Into the viewpublishcontent_list.jsp we call
Sorry...Into the view_publish_content_list.jsp we call "publisherAPI.addContentsToPublish(identifiers, bundeId, date)" or "publisherAPI.addContentsToUnpublish(identifiers, bundeId, date)" without the user...this will cause a NullPointer into the PublisherAPIImpl at this line
if (!strPerAPI.doesUserHavePermission(iden,PermissionAPI.PERMISSION_PUBLISH, user)) { Logger.info(PublisherAPIImpl.class, "User: " + user.getUserId() + " does not have Publish Permission over asset with Identifier: " + iden.getId() ); continue; }
because the "doesUserHavePermission" is called with null user (anonymous) but this is not the right scenario. The nullPointer is into the Logger call "user.getUserId()"
I can handle this one and maybe I commit into my previous branch but with the link at this issue.
no this is fixed now. make sure u have the latest code. i fixed this late last week
yes in the master the code in that JSP is
if(addOperationType.equals("add")){
publisherAPI.addContentsToPublish(identifiers, bundeId, date, user);
} else {
publisherAPI.addContentsToUnpublish(identifiers, bundeId, date, user);
}