• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

TAKETODAY / today-infrastructure / 22258867044
85%

Build:
DEFAULT BRANCH: master
Ran 21 Feb 2026 03:08PM UTC
Jobs 1
Files 4708
Run time 5min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

21 Feb 2026 02:54PM UTC coverage: 84.594% (-0.001%) from 84.595%
22258867044

push

github

TAKETODAY
:bug: Fix InvalidMimeTypeException for compatible media types

The `AbstractMessageConverterMethodProcessor` is in charge of handling
controller method return values and to write those as HTTP response
messages. The content negotiation process is an important part.

The `MimeTypeUtils#sortBySpecificity` is in charge of sorting inbound
"Accept" media types by their specificity and reject them if the list
is too large, in order to protect the application from ddos attacks.

Prior to this commit, the content negotiation process would first get
the sorted "Accept" media types, the producible media types as
advertized by message converters - and collect the intersection of both
in a new list (also sorted by specificity). If the "Accept" list is
large enough (but under the limit), the list of compatible media types
could exceed that limit because duplicates could be introduced in that
list: several converters can produce the same content type.

This commit ensures that compatible media types are collected in a set
to avoid duplicates. Without that, exceeding the limit at this point
will throw an `InvalidMimeTypeException` that's not handled by the
processor and result in a server error.

62867 of 79491 branches covered (79.09%)

Branch coverage included in aggregate %.

149375 of 171404 relevant lines covered (87.15%)

3.72 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
3
78.7
0.0% infra/web/bind/resolver/AbstractMessageConverterMethodProcessor.java
Subprojects
ID Flag name Job ID Ran Files Coverage
1 /jobs/178044313 22258867044.1 21 Feb 2026 03:08PM UTC 4708
84.59
GitHub Action Run
Source Files on build 22258867044
  • Tree
  • List 4708
  • Changed 4
  • Source Changed 0
  • Coverage Changed 4
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #22258867044
  • cf3b8c03 on github
  • Prev Build on master (#22228393353)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc