Uploaded image for project: 'Mule'
  1. Mule
  2. MULE-9501

Wildcard-filter not working properly

    Details

    • Severity:
      S3
    • Severity Label:
      S3

      Description

      The wildcard-filter is only meant to work with suffixes, prefixes and enclosing a string (https://docs.mulesoft.com/mule-user-guide/v/3.4/using-filters#wildcard-filter). However, it allows patterns such as "File*.txt" or "Screenshot-2015.png", in which case it applies the logic of the suffix (matching with inputs such as "File.log" since it considers pattern "File*") or the enclosing string (matching with "Screenshot-2015-03.jpg" since it will consider pattern "*Screenshot-*2015").
      No other patterns should be allowed, meaning if one should be used nothing should be accepted by it.

      Components affected by WildcardFilter:

      • org.mule.routing.filters.ExpressionFilter (expression-filter)
      • org.mule.routing.filters.MessagePropertyFilter (message-property-filter)
      • org.mule.transport.file.filters.FilenameWildcardFilter (file:filename-wildcard-filter)
      • org.mule.transport.http.filters.HttpRequestWildcardFilter (http:request-wildcard-filter)
      • Exception strategies: commit-transaction and rollback-transaction exception patterns.
      • org.mule.api.MessagingException (causeMessage match)
      • org.mule.transformer.simple.MessagePropertiesTransformer (delete: fallback filter if regex match fails)
      • org.mule.expression.ExpressionUtils (org.mule.expression.VariableExpressionEvaluator, org.mule.expression.MessageHeadersExpressionEvaluator, org.mule.expression.MessageHeadersListExpressionEvaluator)
      • org.mule.expression.MessageAttachmentsExpressionEvaluator
      • org.mule.expression.MessageAttachmentsListExpressionEvaluator
        The last three refer to patterns including '*' in expressions, such as "#[headers:*]".

      Other uses:

      • org.mule.exception.AbstractExceptionListener (rollback and commit filters)
      • org.mule.model.resolvers.ReflectionEntryPointResolver (ignored methods patterns)
      • org.mule.transport.AbstractConnector (receiver match)
      • org.mule.transport.vm.VMConnector (endpoint match)
      • org.mule.context.notification.Sender (ListenerSubscriptionPair subscription match)
      • org.mule.module.spring.events.MuleEventMulticaster (subscription match)
      • org.mule.transport.servlet.MuleReceiverServlet (receiver match)

        Attachments

          Activity

            People

            • Assignee:
              afelisatti@mulesoft.com Ana Laura Felisatti
              Reporter:
              afelisatti@mulesoft.com Ana Laura Felisatti
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                PagerDuty

                Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.