- } catch (RepositoryException e1) {
- throw new JcrException("Cannot publish " + nodePath, e1);
+ } catch (ItemNotFoundException e) {
+ // we ignore that the version was not found
+ // since it is most likely because the user doesn't have the rights
+ // on the whole workspace
+ if (log.isTraceEnabled())
+ log.trace("Cannot retrieve version after check in", e);
+ } catch (RepositoryException e) {
+ throw new JcrException("Cannot publish " + nodePath, e);