[DOCU-586] New validateContentType property for ContentTypeFilter Created: 25/Sep/15  Updated: 31/Oct/15  Resolved: 31/Oct/15

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Neutral
Reporter: Robert Šiška Assignee: Ruth Stocks
Resolution: Fixed Votes: 0
Labels: quickwin
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

New Configuration:server/filters/contentType/validateContentType property (Core 3.5.12+/5.4.3+).
Set this property to true if you want to return 400 when requested extension doesn't match with the content type.

See MAGNOLIA-6372 for details.

The default is false.



 Comments   
Comment by Ruth Stocks [ 23/Oct/15 ]

This was already documented for 5.4.2 at:

Comment by Robert Šiška [ 23/Oct/15 ]

validateContentType is not the same thing as registeredExtensionOnly.

The former checks if the extension & content-type matches, the latter just disables unknown extensions.

Comment by Ruth Stocks [ 26/Oct/15 ]

Documented at:

Comment by Robert Šiška [ 29/Oct/15 ]

Looks good!

Generated at Mon Feb 12 01:10:30 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.