Bug 387472 - Provide way to invalidate/flush contentType cached in ContentDescriptionManager
Summary: Provide way to invalidate/flush contentType cached in ContentDescriptionManager
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 4.2   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-Resources-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-17 08:06 EDT by Heiko Böttger CLA
Modified: 2017-07-12 05:38 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Heiko Böttger CLA 2012-08-17 08:06:49 EDT
In our plugin we calculate the ContentType based on metadata. Since metadata may change without changing the file pointing to the metadata, the contenttype is never recalculated. There is a public method "invalidateCache" but no way to reach it. It seems like there is no support for a ContentDescription/ContentType Change Notification.
Comment 1 Mickael Istria CLA 2017-07-12 05:38:24 EDT
Renaming as a feature request as this is not exactly a bug.

In general, it seems to me that what you're doing is wrong regarding the concept of a content-type. A content-type should be only related to file name and file content. If you need some other things to sort out a content-type, then it means what you're dealing with isn't really a content-type but another concept which is specific of yours.
Let's keep this bug open for some time, but given that the user-story behind it seems to not be a "clean" one, we'll probably end up marking this one as WONTFIX.