You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Eric Desgranges (JIRA)" <ji...@apache.org> on 2010/08/23 10:52:17 UTC

[jira] Created: (COUCHDB-867) Add http handlers for root files with special meanings, such as crossdomain.xml.

Add http handlers for root files with special meanings, such as crossdomain.xml.
--------------------------------------------------------------------------------

                 Key: COUCHDB-867
                 URL: https://issues.apache.org/jira/browse/COUCHDB-867
             Project: CouchDB
          Issue Type: Improvement
          Components: HTTP Interface
    Affects Versions: 1.0.1
            Reporter: Eric Desgranges


Some files at the root level of a website have a special meaning, such as favicon.ico storing the favorite icon, which is processed correctly in the [httpd_global_handlers] section of the ini file with this instruction:
favicon.ico = {couch_httpd_misc_handlers, handle_favicon_req, "../share/couchdb/www"}

But this is the only one handled while other files, which are critical when to accessing the CouchDB server from Flash, Flex, Silverlight..., are missing
- crossdomain.xml (this one should be a top priority fix!)
- clientaccesspolicy.xml -- See http://msdn.microsoft.com/en-us/library/cc838250%28v=VS.95%29.aspx#crossdomain_communication

And there's also 'robots.txt' to prevent search engines from accessing some files / directories.








-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (COUCHDB-867) Add http handlers for root files with special meanings, such as crossdomain.xml.

Posted by "Eric Desgranges (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COUCHDB-867?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12915989#action_12915989 ] 

Eric Desgranges commented on COUCHDB-867:
-----------------------------------------

Someone found a hack by duplicating the code that handles the favicon.ico request. Could this be in the next release?

Excerpt from this page: http://mail-archives.apache.org/mod_mbox/couchdb-user/200905.mbox/%3C4A130369.6050209@griffinbyteworks.com%3E

------------------------------------------------------
While discussing problematic clients like Flash, couchdb's lack of 
support for the need of a crossdomain policy file for certain clients 
such as Flash and Silverlight had me tearing my hair out for awhile (I 
have been evaluating both, though have since tossed out Silverlight).  
The biggest problem is Silverlight, because it expects the crossdomain 
file to not only exist on the remote server, but also to exist through 
the same port (ie, 5984).  In the end, I got it working by duplicating 
the erlang code that handles favicon.ico requests to make a new handler 
for requests to /crossdomain.xml .  Rather fun, as it was my first 
exposure to erlang... but obviously very much a hack!
------------------------------------------------------


> Add http handlers for root files with special meanings, such as crossdomain.xml.
> --------------------------------------------------------------------------------
>
>                 Key: COUCHDB-867
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-867
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: HTTP Interface
>    Affects Versions: 1.0.1
>            Reporter: Eric Desgranges
>
> Some files at the root level of a website have a special meaning, such as favicon.ico storing the favorite icon, which is processed correctly in the [httpd_global_handlers] section of the ini file with this instruction:
> favicon.ico = {couch_httpd_misc_handlers, handle_favicon_req, "../share/couchdb/www"}
> But this is the only one handled while other files, which are critical when to accessing the CouchDB server from Flash, Flex, Silverlight..., are missing
> - crossdomain.xml (this one should be a top priority fix!)
> - clientaccesspolicy.xml -- See http://msdn.microsoft.com/en-us/library/cc838250%28v=VS.95%29.aspx#crossdomain_communication
> And there's also 'robots.txt' to prevent search engines from accessing some files / directories.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (COUCHDB-867) Add http handlers for root files with special meanings, such as crossdomain.xml.

Posted by "Eric Desgranges (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COUCHDB-867?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12915537#action_12915537 ] 

Eric Desgranges commented on COUCHDB-867:
-----------------------------------------

Is there really a difficulty to add a special handler to access directly a file like crossdomain.xml?

I don't see any progress on this issue... because you can't really use CouchDB in a Flash or Silverlight application without being able to read a crossdomain.xml / clientaccesspolicy.xml file.

> Add http handlers for root files with special meanings, such as crossdomain.xml.
> --------------------------------------------------------------------------------
>
>                 Key: COUCHDB-867
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-867
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: HTTP Interface
>    Affects Versions: 1.0.1
>            Reporter: Eric Desgranges
>
> Some files at the root level of a website have a special meaning, such as favicon.ico storing the favorite icon, which is processed correctly in the [httpd_global_handlers] section of the ini file with this instruction:
> favicon.ico = {couch_httpd_misc_handlers, handle_favicon_req, "../share/couchdb/www"}
> But this is the only one handled while other files, which are critical when to accessing the CouchDB server from Flash, Flex, Silverlight..., are missing
> - crossdomain.xml (this one should be a top priority fix!)
> - clientaccesspolicy.xml -- See http://msdn.microsoft.com/en-us/library/cc838250%28v=VS.95%29.aspx#crossdomain_communication
> And there's also 'robots.txt' to prevent search engines from accessing some files / directories.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (COUCHDB-867) Add http handlers for root files with special meanings, such as crossdomain.xml.

Posted by "Paul Joseph Davis (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/COUCHDB-867?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul Joseph Davis updated COUCHDB-867:
--------------------------------------

    Skill Level: New Contributors Level (Easy)

> Add http handlers for root files with special meanings, such as crossdomain.xml.
> --------------------------------------------------------------------------------
>
>                 Key: COUCHDB-867
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-867
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: HTTP Interface
>    Affects Versions: 1.0.1
>            Reporter: Eric Desgranges
>
> Some files at the root level of a website have a special meaning, such as favicon.ico storing the favorite icon, which is processed correctly in the [httpd_global_handlers] section of the ini file with this instruction:
> favicon.ico = {couch_httpd_misc_handlers, handle_favicon_req, "../share/couchdb/www"}
> But this is the only one handled while other files, which are critical when to accessing the CouchDB server from Flash, Flex, Silverlight..., are missing
> - crossdomain.xml (this one should be a top priority fix!)
> - clientaccesspolicy.xml -- See http://msdn.microsoft.com/en-us/library/cc838250%28v=VS.95%29.aspx#crossdomain_communication
> And there's also 'robots.txt' to prevent search engines from accessing some files / directories.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.