Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vulnerability fix (powered by Mobb Autofixer) #36

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
4 changes: 2 additions & 2 deletions src/org/opencms/ade/sitemap/CmsVfsSitemapService.java
Original file line number Diff line number Diff line change
Expand Up @@ -2075,7 +2075,7 @@ private CmsNewResourceInfo createNewResourceInfo(CmsObject cms, CmsResource mode
false,
CmsResourceFilter.DEFAULT);
} catch (CmsException e) {
LOG.warn(e.getLocalizedMessage(), e);
LOG.warn("Unexpected error: mobb-8d4cff01ebd34eb5220a6d12ffd207f6", e);
}
CmsNewResourceInfo info = new CmsNewResourceInfo(
typeId,
Expand All @@ -2098,7 +2098,7 @@ private CmsNewResourceInfo createNewResourceInfo(CmsObject cms, CmsResource mode
}
}
} catch (CmsException e) {
LOG.warn(e.getLocalizedMessage(), e);
LOG.warn("Unexpected error: mobb-bc741d01085196ed0730557a828f7661", e);
}

info.setNavPos(navpos);
Expand Down
2 changes: 1 addition & 1 deletion src/org/opencms/db/generic/CmsProjectDriver.java
Original file line number Diff line number Diff line change
Expand Up @@ -3217,7 +3217,7 @@ protected void internalResetResourceState(CmsDbContext dbc, CmsResource resource
Messages.get().getBundle().key(
Messages.LOG_ERROR_RESETTING_RESOURCE_STATE_1,
resource.getRootPath()),
e);
"Unexpected error: mobb-a4fc3ede3f0ac3f7fec7fc181f91683f");
}
throw e;
}
Expand Down
2 changes: 1 addition & 1 deletion src/org/opencms/i18n/CmsMultiMessages.java
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ private String resolveKey(String keyName) {
noCache = true;
} catch (CmsMessageException e) {
if (LOG.isDebugEnabled()) {
LOG.debug(e.getMessage(), e);
LOG.debug("Unexpected error: mobb-32e2318e64c563fd1d20603ae95b7de3", e);
}
}
}
Expand Down
6 changes: 3 additions & 3 deletions src/org/opencms/ui/sitemap/CmsSitemapTreeController.java
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ public void executeAction(MenuContext context) {
fileToModify2,
CmsResourceFilter.IGNORE_EXPIRATION);
} catch (CmsException e) {
LOG.error(e.getLocalizedMessage(), e);
LOG.error("Unexpected error: mobb-e430c2367c96a2358a5b27aa22e205cd", e);
}
}

Expand Down Expand Up @@ -498,15 +498,15 @@ public void executeAction(MenuContext context) {
}

} catch (CmsException e) {
LOG.error(e.getLocalizedMessage(), e);
LOG.error("Unexpected error: mobb-9ec39211eb2abcb385aa057e7bf15dc0", e);
CmsErrorDialog.showErrorDialog(e);

} finally {
if ((actionRecord != null) && (actionRecord.getChange() == LockChange.locked)) {
try {
cms.unlockResource(fileToModify2);
} catch (CmsException e) {
LOG.error(e.getLocalizedMessage(), e);
LOG.error("Unexpected error: mobb-fc7665aef4d5c1928dba8a22becb7d35", e);
CmsErrorDialog.showErrorDialog(e);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/org/opencms/widgets/CmsDisplayTypeSelectWidget.java
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ private List<FormatterOption> getFormatterOptions(CmsObject cms, CmsResource res
}
}
} catch (Exception ex) {
LOG.debug(ex.getMessage(), ex);
LOG.debug("Unexpected error: mobb-8c4e1c0a5069ff8228201b2bf262eff8", ex);
}
}
} catch (CmsException e) {
Expand Down
2 changes: 1 addition & 1 deletion src/org/opencms/xml/types/CmsXmlVfsFileValue.java
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ public Object toJson(CmsObject cms) {
} catch (JSONException e) {
return null;
} catch (CmsException e) {
LOG.error(e.getLocalizedMessage(), e);
LOG.error(e.getLocalizedMessage(), "Unexpected error: mobb-0a83aa1e57cc78e630bf8577bd4d0384");
return null;
}
}
Expand Down
Loading