[MGNLCACHE-188] Cache endpoint does not correctly set content-type on response Created: 02/Nov/17 Updated: 30/Mar/23 |
|
| Status: | Open |
| Project: | Cache Modules |
| Component/s: | cache browser |
| Affects Version/s: | 5.6 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | Richard Gange | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Template: |
|
||||||||||||||||
| Acceptance criteria: |
Empty
|
||||||||||||||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||||||||||||||
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
||||||||||||||||
| Date of First Response: | |||||||||||||||||
| Description |
|
Using the following call:
curl -X GET http://localhost:8080/magnoliaPublic/.rest/cache/v1/ping \
-u superuser:superuser
produces this warning on public: 2017-11-02 14:47:01,102 WARN info.magnolia.cms.filters.ContentTypeFilter : Content type for http://localhost:8080/magnoliaPublic/.rest/cache/v1/ping is not set. 2017-11-02 14:47:01,103 WARN info.magnolia.cms.filters.ContentTypeFilter : Response is not committed yet. Setting content type: text/html. the code specifies it will respond with json. |
| Comments |
| Comment by Richard Gange [ 07/Nov/17 ] |
|
Here is another example where I delete something from the cache via the browser: 2017-11-07 08:57:32,023 INFO fo.magnolia.objectfactory.ObservedComponentFactory: Re-loaded info.magnolia.cms.exchange.ActivationManager from node /server/activation 2017-11-07 08:59:17,425 WARN info.magnolia.cms.filters.ContentTypeFilter : Content type for http://localhost:7070/magnoliaPublic/.rest/cache/v1/defaultPageCache/delete?cacheKey=%7B%22%40type%22%3A%22info.magnolia.module.cache.cachekey.DefaultCacheKey%22%2C%22isSecured%22%3Afalse%2C%22uri%22%3A%22%2Ftest%22%2C%22serverName%22%3A%22localhost%22%2C%22channel%22%3A%22all%22%2C%22locale%22%3A%22en%22%2C%22method%22%3A%22get%22%2C%22params%22%3A%7B%22%40type%22%3A%22java.util.LinkedHashMap%22%7D%2C%22additionalAttributes%22%3A%7B%22%40type%22%3A%22java.util.LinkedHashMap%22%7D%7D&mgnlUserId=superuser&mgnlUserPSWD=superuser is not set. 2017-11-07 08:59:17,425 WARN info.magnolia.cms.filters.ContentTypeFilter : Response is not committed yet. Setting content type: text/html. |