You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Benjamin Young (JIRA)" <ji...@apache.org> on 2010/09/28 21:07:33 UTC
[jira] Created: (COUCHDB-898) Allow provides() to handle "raw" MIME
Type declarations as well as "shortcut" names
Allow provides() to handle "raw" MIME Type declarations as well as "shortcut" names
-----------------------------------------------------------------------------------
Key: COUCHDB-898
URL: https://issues.apache.org/jira/browse/COUCHDB-898
Project: CouchDB
Issue Type: Improvement
Components: JavaScript View Server
Affects Versions: 1.0.1
Reporter: Benjamin Young
Priority: Minor
Fix For: 1.0.2
Right now, provides() only supports the content types declared via registerType() if they're selected using the shortcut names used in main.js (or render.js in trunk). Without a list of those "laying around" a developer will likely submit a raw MIME Type vs. using the shortcut name.
For example,
provides("text/calendar", ....);
currently fails because you need to use:
provides("ics", ....);
More people know about "text/calendar" than will know to guess the shortcut name.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (COUCHDB-898) Allow provides() to handle "raw" MIME
Type declarations as well as "shortcut" names
Posted by "Paul Joseph Davis (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-898?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paul Joseph Davis updated COUCHDB-898:
--------------------------------------
Skill Level: New Contributors Level (Easy)
> Allow provides() to handle "raw" MIME Type declarations as well as "shortcut" names
> -----------------------------------------------------------------------------------
>
> Key: COUCHDB-898
> URL: https://issues.apache.org/jira/browse/COUCHDB-898
> Project: CouchDB
> Issue Type: Improvement
> Components: JavaScript View Server
> Affects Versions: 1.0.1
> Reporter: Benjamin Young
> Priority: Minor
> Fix For: 1.0.2
>
> Attachments: provides_reverse_content_type_lookup.diff
>
>
> Right now, provides() only supports the content types declared via registerType() if they're selected using the shortcut names used in main.js (or render.js in trunk). Without a list of those "laying around" a developer will likely submit a raw MIME Type vs. using the shortcut name.
> For example,
> provides("text/calendar", ....);
> currently fails because you need to use:
> provides("ics", ....);
> More people know about "text/calendar" than will know to guess the shortcut name.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (COUCHDB-898) Allow provides() to handle "raw" MIME
Type declarations as well as "shortcut" names
Posted by "Benjamin Young (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/COUCHDB-898?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Young updated COUCHDB-898:
-----------------------------------
Attachment: provides_reverse_content_type_lookup.diff
The attached patch makes them both shortcut names and full MIME Type names usable to provides().
If code uses:
provides("text/calendar", ....);
then the MIME Type list that's included in (shortcut name "ics") will be used, just as if the code had been written:
provides("ics", ...);
This hopefully removes confusion for people only familiar with the MIME Types and who have not yet learned/found the shortcut names.
> Allow provides() to handle "raw" MIME Type declarations as well as "shortcut" names
> -----------------------------------------------------------------------------------
>
> Key: COUCHDB-898
> URL: https://issues.apache.org/jira/browse/COUCHDB-898
> Project: CouchDB
> Issue Type: Improvement
> Components: JavaScript View Server
> Affects Versions: 1.0.1
> Reporter: Benjamin Young
> Priority: Minor
> Fix For: 1.0.2
>
> Attachments: provides_reverse_content_type_lookup.diff
>
>
> Right now, provides() only supports the content types declared via registerType() if they're selected using the shortcut names used in main.js (or render.js in trunk). Without a list of those "laying around" a developer will likely submit a raw MIME Type vs. using the shortcut name.
> For example,
> provides("text/calendar", ....);
> currently fails because you need to use:
> provides("ics", ....);
> More people know about "text/calendar" than will know to guess the shortcut name.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.