From e194949ba107c5824af5ddb59704f65b370561d6 Mon Sep 17 00:00:00 2001 From: Mobb autofixer Date: Mon, 23 Sep 2024 21:21:43 +0000 Subject: [PATCH 01/15] mobb fix commit: 8a9ecf57-f3f4-46eb-a0ea-b771fe2b36c1 --- src/org/opencms/util/CmsMacroResolver.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/org/opencms/util/CmsMacroResolver.java b/src/org/opencms/util/CmsMacroResolver.java index 144d877ea25..f9dfc207ef9 100644 --- a/src/org/opencms/util/CmsMacroResolver.java +++ b/src/org/opencms/util/CmsMacroResolver.java @@ -334,8 +334,12 @@ public static void copyAndResolveMacro( CmsMacroResolver macroResolver = new CmsMacroResolver(); macroResolver.setKeepEmptyMacros(true); + int counter = 0; for (String key : keyValue.keySet()) { + if(counter > 560) + break; + counter++; macroResolver.addMacro(key, keyValue.get(key)); } From 5751813b27131bcf5adcd0b050e4a477f9ebded7 Mon Sep 17 00:00:00 2001 From: Mobb autofixer Date: Mon, 23 Sep 2024 21:21:43 +0000 Subject: [PATCH 02/15] mobb fix commit: 1c25a448-e8c3-4c8f-b5f2-08432b61802c --- .../ade/galleries/CmsGalleryFilteredNavTreeBuilder.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/org/opencms/ade/galleries/CmsGalleryFilteredNavTreeBuilder.java b/src/org/opencms/ade/galleries/CmsGalleryFilteredNavTreeBuilder.java index 382b495b903..552c7899229 100644 --- a/src/org/opencms/ade/galleries/CmsGalleryFilteredNavTreeBuilder.java +++ b/src/org/opencms/ade/galleries/CmsGalleryFilteredNavTreeBuilder.java @@ -345,7 +345,11 @@ public void initTree(String filter) { for (NavigationNode leaf : leaves) { leaf.setIsLeaf(true); NavigationNode current = leaf; + int counter = 0; while ((current != null) && (current != m_root) && !current.isMatch()) { + if(counter > 560) + break; + counter++; current = current.getParent(); } while (current != null) { From b5b00a7e5bbf63fed05f0cb59381342ce2254a91 Mon Sep 17 00:00:00 2001 From: Mobb autofixer Date: Mon, 23 Sep 2024 21:21:44 +0000 Subject: [PATCH 03/15] mobb fix commit: 9ee866ec-1ca2-4b50-98b5-7e2aa4746d79 --- src/org/opencms/file/types/CmsResourceTypeImage.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/org/opencms/file/types/CmsResourceTypeImage.java b/src/org/opencms/file/types/CmsResourceTypeImage.java index 64695ae18ab..c735390c58b 100644 --- a/src/org/opencms/file/types/CmsResourceTypeImage.java +++ b/src/org/opencms/file/types/CmsResourceTypeImage.java @@ -250,7 +250,11 @@ private BufferedImage createOrientedCopy(BufferedImage image, int exifOrientatio int h = image.getHeight(); target = new BufferedImage(flipDimensions ? h : w, flipDimensions ? w : h, image.getType()); // for each pixel, copy it to different coordinates (tx, ty) in the target depending on orientation + int counter = 0; for (int x = 0; x < w; x++) { + if(counter > 560) + break; + counter++; for (int y = 0; y < h; y++) { int tx, ty; switch (exifOrientation) { From 60d473cff31f6cf2db8e8286dce1dedbe8870660 Mon Sep 17 00:00:00 2001 From: Mobb autofixer Date: Mon, 23 Sep 2024 21:21:45 +0000 Subject: [PATCH 04/15] mobb fix commit: 0ad14573-56ca-4d83-89ba-9ef7e951af59 --- src/org/opencms/util/CmsStringUtil.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/org/opencms/util/CmsStringUtil.java b/src/org/opencms/util/CmsStringUtil.java index c692ea4bea0..bb1a3281e9a 100644 --- a/src/org/opencms/util/CmsStringUtil.java +++ b/src/org/opencms/util/CmsStringUtil.java @@ -1290,7 +1290,11 @@ public static String listAsString(List list, String separator) { StringBuffer string = new StringBuffer(128); Iterator it = list.iterator(); + int counter = 0; while (it.hasNext()) { + if(counter > 560) + break; + counter++; string.append(it.next()); if (it.hasNext()) { string.append(separator); From 0e5604e764a50c383bd73381ebdc809f980e8077 Mon Sep 17 00:00:00 2001 From: Mobb autofixer Date: Mon, 23 Sep 2024 21:21:46 +0000 Subject: [PATCH 05/15] mobb fix commit: 5e9f44fc-8ed4-45e6-878b-70a7b9a44c08 --- src/org/opencms/gwt/A_CmsClientMessageBundle.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/org/opencms/gwt/A_CmsClientMessageBundle.java b/src/org/opencms/gwt/A_CmsClientMessageBundle.java index 902c043f585..160eb67802e 100644 --- a/src/org/opencms/gwt/A_CmsClientMessageBundle.java +++ b/src/org/opencms/gwt/A_CmsClientMessageBundle.java @@ -95,7 +95,11 @@ public String export(Locale locale, boolean wrapScript) { try { ResourceBundle resourceBundle = CmsResourceBundleLoader.getBundle(getBundleName(), locale); Enumeration bundleKeys = resourceBundle.getKeys(); + int counter = 0; while (bundleKeys.hasMoreElements()) { + if(counter > 560) + break; + counter++; String bundleKey = bundleKeys.nextElement(); String value = resourceBundle.getString(bundleKey); if (value.startsWith(IMPORT_PREFIX)) { From 44c36583b9610ae21d78d0be5ce731d8136d2b72 Mon Sep 17 00:00:00 2001 From: Mobb autofixer Date: Mon, 23 Sep 2024 21:21:47 +0000 Subject: [PATCH 06/15] mobb fix commit: a956a446-9710-4924-8fa2-b738e1780934 --- src/org/opencms/i18n/CmsEncoder.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/org/opencms/i18n/CmsEncoder.java b/src/org/opencms/i18n/CmsEncoder.java index 5e4c9e8a7b3..702251701df 100644 --- a/src/org/opencms/i18n/CmsEncoder.java +++ b/src/org/opencms/i18n/CmsEncoder.java @@ -298,7 +298,11 @@ public static String decodeHtmlEntities(String input) { Matcher matcher = ENTITIY_PATTERN.matcher(input); StringBuffer result = new StringBuffer(input.length()); + int counter = 0; while (matcher.find()) { + if(counter > 560) + break; + counter++; String value = matcher.group(1); int c = Integer.valueOf(value).intValue(); String replacement = new String(Character.toChars(c)); From 23a7c382160f6a1cc5b4962a49e8ac784e3ee2bc Mon Sep 17 00:00:00 2001 From: Mobb autofixer Date: Mon, 23 Sep 2024 21:21:47 +0000 Subject: [PATCH 07/15] mobb fix commit: b8897ba2-120d-48c5-bba9-8842b088dd84 --- src/org/opencms/workplace/CmsWorkplace.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/org/opencms/workplace/CmsWorkplace.java b/src/org/opencms/workplace/CmsWorkplace.java index c9856c2efda..6769fb35dee 100644 --- a/src/org/opencms/workplace/CmsWorkplace.java +++ b/src/org/opencms/workplace/CmsWorkplace.java @@ -2079,7 +2079,11 @@ public String paramsAsRequest() { StringBuffer result = new StringBuffer(512); Map params = paramValues(); Iterator> i = params.entrySet().iterator(); + int counter = 0; while (i.hasNext()) { + if(counter > 560) + break; + counter++; Entry entry = i.next(); result.append(entry.getKey()); result.append("="); From 6704c1197b948502b376e0fe6457fb4f580abe75 Mon Sep 17 00:00:00 2001 From: Mobb autofixer Date: Mon, 23 Sep 2024 21:21:48 +0000 Subject: [PATCH 08/15] mobb fix commit: bfad2f5d-6f67-4aa1-b0d4-f9e44d26026b --- src/org/opencms/relations/CmsInternalLinksValidator.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/org/opencms/relations/CmsInternalLinksValidator.java b/src/org/opencms/relations/CmsInternalLinksValidator.java index cbc0c52cd13..f631f644212 100644 --- a/src/org/opencms/relations/CmsInternalLinksValidator.java +++ b/src/org/opencms/relations/CmsInternalLinksValidator.java @@ -165,7 +165,11 @@ private Map> getBrokenRelations(List resourceN CmsUUID.getNullUUID()); Iterator itFolders = resourceNames.iterator(); + int counter = 0; while (itFolders.hasNext()) { + if(counter > 560) + break; + counter++; String folderName = itFolders.next(); List relations; try { From ff635963a01ae8b24a2f86c3f8394095fda1bc7f Mon Sep 17 00:00:00 2001 From: Mobb autofixer Date: Mon, 23 Sep 2024 21:21:49 +0000 Subject: [PATCH 09/15] mobb fix commit: c7b386aa-60fc-4023-b23f-0cdeac197c64 --- src/org/opencms/util/CmsRequestUtil.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/org/opencms/util/CmsRequestUtil.java b/src/org/opencms/util/CmsRequestUtil.java index a8c5e80bd7b..38ee55d8477 100644 --- a/src/org/opencms/util/CmsRequestUtil.java +++ b/src/org/opencms/util/CmsRequestUtil.java @@ -858,7 +858,11 @@ public static Map readParameterMapFromMultiPart( Map parameterMap = new HashMap(); Iterator i = multiPartFileItems.iterator(); + int counter = 0; while (i.hasNext()) { + if(counter > 560) + break; + counter++; FileItem item = i.next(); String name = item.getFieldName(); String value = null; From 1cd049a096dd0459b20b1d84686f7269f9d2b852 Mon Sep 17 00:00:00 2001 From: Mobb autofixer Date: Mon, 23 Sep 2024 21:21:50 +0000 Subject: [PATCH 10/15] mobb fix commit: 58d3144e-07df-4f57-b088-8a8afe036c0f --- .../search/solr/spellchecking/CmsSolrSpellchecker.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/org/opencms/search/solr/spellchecking/CmsSolrSpellchecker.java b/src/org/opencms/search/solr/spellchecking/CmsSolrSpellchecker.java index ed54e4ae95e..49927657888 100644 --- a/src/org/opencms/search/solr/spellchecking/CmsSolrSpellchecker.java +++ b/src/org/opencms/search/solr/spellchecking/CmsSolrSpellchecker.java @@ -372,7 +372,11 @@ private CmsSpellcheckingRequest parseHttpRequest(final ServletRequest req, final final StringTokenizer st = new StringTokenizer(q); final List wordsToCheck = new ArrayList(); + int counter = 0; while (st.hasMoreTokens()) { + if(counter > 560) + break; + counter++; final String word = st.nextToken(); wordsToCheck.add(word); From a022b5ca602acbff2020d5cee4282fd2348aafbe Mon Sep 17 00:00:00 2001 From: Mobb autofixer Date: Mon, 23 Sep 2024 21:21:51 +0000 Subject: [PATCH 11/15] mobb fix commit: db27e56d-cb39-4323-abad-dc77855113b7 --- src/org/opencms/ade/galleries/CmsGalleryService.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/org/opencms/ade/galleries/CmsGalleryService.java b/src/org/opencms/ade/galleries/CmsGalleryService.java index 3d83f16b3fa..7c3f385a382 100644 --- a/src/org/opencms/ade/galleries/CmsGalleryService.java +++ b/src/org/opencms/ade/galleries/CmsGalleryService.java @@ -1968,8 +1968,12 @@ private List buildTypesList(List types, } Map typeProviderMapping = getPreviewProviderForTypes(types); Iterator it = types.iterator(); + int counter = 0; while (it.hasNext()) { + if(counter > 560) + break; + counter++; I_CmsResourceType type = it.next(); try { CmsResourceTypeBean bean = createTypeBean( From 3eab702aa1e9749316f8c7c3f94710b041550432 Mon Sep 17 00:00:00 2001 From: Mobb autofixer Date: Mon, 23 Sep 2024 21:21:51 +0000 Subject: [PATCH 12/15] mobb fix commit: a1aa4bfd-f064-418f-9bfb-e1c3f1a1895d --- src/org/opencms/ade/galleries/CmsGalleryService.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/org/opencms/ade/galleries/CmsGalleryService.java b/src/org/opencms/ade/galleries/CmsGalleryService.java index 7c3f385a382..84cc2bdd5a7 100644 --- a/src/org/opencms/ade/galleries/CmsGalleryService.java +++ b/src/org/opencms/ade/galleries/CmsGalleryService.java @@ -1665,7 +1665,11 @@ private List buildGalleriesList( CmsGalleryTypeInfo tInfo = ent.getValue(); ArrayList contentTypes = new ArrayList(); Iterator it = tInfo.getContentTypes().iterator(); + int counter = 0; while (it.hasNext()) { + if(counter > 560) + break; + counter++; contentTypes.add(String.valueOf(it.next().getTypeName())); } for (CmsResource res : tInfo.getGalleries()) { From e7faee40d2f0316f2a2c7e1fae63de3a83185516 Mon Sep 17 00:00:00 2001 From: Mobb autofixer Date: Mon, 23 Sep 2024 21:21:52 +0000 Subject: [PATCH 13/15] mobb fix commit: 81ced2d4-b184-4b72-a821-5423b96f6904 --- src/org/opencms/ui/dataview/CmsDataViewPanel.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/org/opencms/ui/dataview/CmsDataViewPanel.java b/src/org/opencms/ui/dataview/CmsDataViewPanel.java index 04ccb212096..dea6ebf334a 100644 --- a/src/org/opencms/ui/dataview/CmsDataViewPanel.java +++ b/src/org/opencms/ui/dataview/CmsDataViewPanel.java @@ -413,7 +413,11 @@ public void refreshData(boolean resetPaging, String textQuery) { resetPaging ? 0 : getOffset(), m_dataView.getPageSize()); m_container.removeAllItems(); + int counter = 0; for (I_CmsDataViewItem item : result.getItems()) { + if(counter > 560) + break; + counter++; fillItem(item, m_container.addItem(item.getId())); } //m_tablePanel.setScrollTop(0); From 531d381daacb69a24c732f9e0e8208d1df5adbc2 Mon Sep 17 00:00:00 2001 From: Mobb autofixer Date: Mon, 23 Sep 2024 21:21:53 +0000 Subject: [PATCH 14/15] mobb fix commit: 5597c716-6636-4ad3-93b5-d12e45d21995 --- src/org/opencms/module/CmsModuleManager.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/org/opencms/module/CmsModuleManager.java b/src/org/opencms/module/CmsModuleManager.java index abbaa50cdae..6b56a416462 100644 --- a/src/org/opencms/module/CmsModuleManager.java +++ b/src/org/opencms/module/CmsModuleManager.java @@ -1086,7 +1086,11 @@ private synchronized void initModuleExportPoints() { Set exportPoints = new HashSet(); Iterator i = m_modules.values().iterator(); + int counter = 0; while (i.hasNext()) { + if(counter > 560) + break; + counter++; CmsModule module = i.next(); List moduleExportPoints = module.getExportPoints(); for (int j = 0; j < moduleExportPoints.size(); j++) { From 79051ae05ea3c48acb5aeaf9ae1f09f0b3f27b2b Mon Sep 17 00:00:00 2001 From: Mobb autofixer Date: Mon, 23 Sep 2024 21:21:54 +0000 Subject: [PATCH 15/15] mobb fix commit: 54c18047-1570-4f21-b866-9cd2a6f7f890 --- src/org/opencms/search/CmsSearch.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/org/opencms/search/CmsSearch.java b/src/org/opencms/search/CmsSearch.java index 0eddffea552..8820d67a04f 100644 --- a/src/org/opencms/search/CmsSearch.java +++ b/src/org/opencms/search/CmsSearch.java @@ -416,7 +416,11 @@ public Map getPageLinks() { } // build the sorted tree map of page links + int counter = 0; for (int i = startIndex; i <= endIndex; i++) { + if(counter > 560) + break; + counter++; links.put(Integer.valueOf(i), (link + i)); } return links;