Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-26866

Fix StackoverflowError on mimetype detection

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.10
    • Fix Version/s: 10.10-HF03, 11.1, 2021.0
    • Component/s: Convert

      Description

      The following error can be seen in production in server logs:

      java.lang.StackOverflowError: null
      	at java.util.regex.Pattern.sequence(Pattern.java:2134) ~[?:1.8.0_131]
      	at java.util.regex.Pattern.expr(Pattern.java:1996) ~[?:1.8.0_131]
      	at java.util.regex.Pattern.group0(Pattern.java:2905) ~[?:1.8.0_131]
      	at java.util.regex.Pattern.sequence(Pattern.java:2051) ~[?:1.8.0_131]
      	at java.util.regex.Pattern.expr(Pattern.java:1996) ~[?:1.8.0_131]
      	at java.util.regex.Pattern.compile(Pattern.java:1696) ~[?:1.8.0_131]
      	at java.util.regex.Pattern.<init>(Pattern.java:1351) ~[?:1.8.0_131]
      	at java.util.regex.Pattern.compile(Pattern.java:1028) ~[?:1.8.0_131]
      	at java.lang.String.replaceAll(String.java:2223) ~[?:1.8.0_131]
      	at org.nuxeo.ecm.core.convert.service.MimeTypeTranslationHelper.computeMimeTypeWithWildcardSubType(MimeTypeTranslationHelper.java:174) ~[nuxeo-core-convert-10.10.jar:?]
      	at org.nuxeo.ecm.core.convert.service.MimeTypeTranslationHelper.hasCompatibleMimeType(MimeTypeTranslationHelper.java:103) ~[nuxeo-core-convert-10.10.jar:?]
      	at org.nuxeo.ecm.core.convert.service.ConversionServiceImpl.hasSourceMimeType(ConversionServiceImpl.java:360) ~[nuxeo-core-convert-10.10.jar:?]
      	at org.nuxeo.ecm.core.convert.service.ConversionServiceImpl.convert(ConversionServiceImpl.java:321) ~[nuxeo-core-convert-10.10.jar:?]
      	at org.nuxeo.ecm.diff.content.converters.AbstractContentDiffConverter.convert(AbstractContentDiffConverter.java:47) ~[nuxeo-diff-content-10.10.jar:?]
      	at org.nuxeo.ecm.diff.content.converters.ContentDiffHtmlConverter.convert(ContentDiffHtmlConverter.java:83) ~[nuxeo-diff-content-10.10.jar:?]
      	at org.nuxeo.ecm.core.convert.service.ConversionServiceImpl.convert(ConversionServiceImpl.java:332) ~[nuxeo-core-convert-10.10.jar:?]
      	at org.nuxeo.ecm.diff.content.converters.AbstractContentDiffConverter.convert(AbstractContentDiffConverter.java:47) ~[nuxeo-diff-content-10.10.jar:?]
      	at org.nuxeo.ecm.diff.content.converters.ContentDiffHtmlConverter.convert(ContentDiffHtmlConverter.java:83) ~[nuxeo-diff-content-10.10.jar:?]
      	at org.nuxeo.ecm.core.convert.service.ConversionServiceImpl.convert(ConversionServiceImpl.java:332) ~[nuxeo-core-convert-10.10.jar:?]
      	at org.nuxeo.ecm.diff.content.converters.AbstractContentDiffConverter.convert(AbstractContentDiffConverter.java:47) ~[nuxeo-diff-content-10.10.jar:?]
      	at org.nuxeo.ecm.diff.content.converters.ContentDiffHtmlConverter.convert(ContentDiffHtmlConverter.java:83) ~[nuxeo-diff-content-10.10.jar:?]
      	at org.nuxeo.ecm.core.convert.service.ConversionServiceImpl.convert(ConversionServiceImpl.java:332) ~[nuxeo-core-convert-10.10.jar:?]
      	at org.nuxeo.ecm.diff.content.converters.AbstractContentDiffConverter.convert(AbstractContentDiffConverter.java:47) ~[nuxeo-diff-content-10.10.jar:?]
      	at org.nuxeo.ecm.diff.content.converters.ContentDiffHtmlConverter.convert(ContentDiffHtmlConverter.java:83) ~[nuxeo-diff-content-10.10.jar:?]
      	at org.nuxeo.ecm.core.convert.service.ConversionServiceImpl.convert(ConversionServiceImpl.java:332) ~[nuxeo-core-convert-10.10.jar:?]
      	at org.nuxeo.ecm.diff.content.converters.AbstractContentDiffConverter.convert(AbstractContentDiffConverter.java:47) ~[nuxeo-diff-content-10.10.jar:?]
      	at org.nuxeo.ecm.diff.content.converters.ContentDiffHtmlConverter.convert(ContentDiffHtmlConverter.java:83) ~[nuxeo-diff-content-10.10.jar:?]
      	at org.nuxeo.ecm.core.convert.service.ConversionServiceImpl.convert(ConversionServiceImpl.java:332) ~[nuxeo-core-convert-10.10.jar:?]
      	at org.nuxeo.ecm.diff.content.converters.AbstractContentDiffConverter.convert(AbstractContentDiffConverter.java:47) ~[nuxeo-diff-content-10.10.jar:?]
      	at org.nuxeo.ecm.diff.content.converters.ContentDiffHtmlConverter.convert(ContentDiffHtmlConverter.java:83) ~[nuxeo-diff-content-10.10.jar:?]
      	at org.nuxeo.ecm.core.convert.service.ConversionServiceImpl.convert(ConversionServiceImpl.java:332) ~[nuxeo-core-convert-10.10.jar:?]
      	at org.nuxeo.ecm.diff.content.converters.AbstractContentDiffConverter.convert(AbstractContentDiffConverter.java:47) ~[nuxeo-diff-content-10.10.jar:?]
      	at org.nuxeo.ecm.diff.content.converters.ContentDiffHtmlConverter.convert(ContentDiffHtmlConverter.java:83) ~[nuxeo-diff-content-10.10.jar:?]
      	at org.nuxeo.ecm.core.convert.service.ConversionServiceImpl.convert(ConversionServiceImpl.java:332) ~[nuxeo-core-convert-10.10.jar:?]
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 day
                1d