Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handle_file_req handler for crossdomain.xml #4

Closed
wants to merge 1 commit into from

Conversation

joelwreed
Copy link
Contributor

Add a new handler, handle_file_req, to serve up files like /crossdomain.xml from a couchdb instance. For example, you could add:

[httpd_global_handlers]
crossdomain.xml = {couch_httpd_misc_handlers, handle_file_req, "/usr/share/couchdb/www/crossdomain.xml" }

To your local.ini to serve up crossdomain.xml.

…in.xml from a couchdb instance. For example, you could add:

[httpd_global_handlers]
crossdomain.xml = {couch_httpd_misc_handlers, handle_file_req, "/usr/share/couchdb/www/crossdomain.xml" }

To your local.ini to serve up crossdomain.xml.
@janl
Copy link
Member

janl commented Mar 28, 2012

Hi,

Sorry this has been lingering here for so long!

Until very recently, this wasn't an official way to contribute back to Apache CouchDB.

May we kindly request that you check whether this is still an issue and update the PR accordingly?

We are now prepared and more than happy to accept pull requests :)

Cheers
Jan

@janl
Copy link
Member

janl commented Nov 14, 2012

I have committed this to the master branch. This’ll show up in a CouchDB release near you soon :)

Could you close this PR for us (we currently can't, thanks!)

@joelwreed joelwreed closed this in 2774531 Nov 15, 2012
seanbarclay pushed a commit to seanbarclay/couchdb that referenced this pull request Aug 5, 2013
…esign-UI-login

1829 user experience redesign ui login
robertkowalski pushed a commit to robertkowalski/couchdb that referenced this pull request Jul 11, 2014
Router remove(), log clean up and fix couchapp grunt tasks
asfgit pushed a commit that referenced this pull request Nov 13, 2014
This closes #4

Signed-off-by: Alexander Shorin <[email protected]>
candeira pushed a commit to candeira/couchdb that referenced this pull request Apr 6, 2015
This can be used to serve up files like /crossdomain.xml from a
CouchDB instance. For example, you could add:

    [httpd_global_handlers]
    crossdomain.xml = {couch_httpd_misc_handlers, handle_file_req, "/usr/share/couchdb/www/crossdomain.xml" }

To your local.ini to serve up crossdomain.xml.

Closes apache#4
lag-linaro pushed a commit to lag-linaro/couchdb that referenced this pull request Oct 25, 2018
kocolosk pushed a commit to kocolosk/couchdb that referenced this pull request May 20, 2019
asfgit pushed a commit that referenced this pull request Nov 22, 2019
Fix compilation errors and use of macro
janl pushed a commit that referenced this pull request Jan 5, 2020
This closes #4

Signed-off-by: Alexander Shorin <[email protected]>
asfgit pushed a commit that referenced this pull request Jan 6, 2020
rnewson pushed a commit that referenced this pull request Mar 12, 2020
* Improve pubkey not found error handling

When the public key identified by the {Alg, KID} tuple is not found on
the IAM keystore server, it's possible to see errors like:

([email protected])140> epep:jwt_decode(SampleJWT).
** exception error: no function clause matching
                    public_key:do_verify(<<"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IjIwMTcwNTIwLTAwOjAwOjAwIn0.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0OjEyMzIx"...>>,
                                         sha256,
                                         <<229,188,162,247,201,233,118,32,115,206,156,
                                           169,17,221,78,157,161,147,46,179,42,219,66,
                                           15,139,91,...>>,
                                         {error,not_found}) (public_key.erl, line 782)
     in function  jwtf:public_key_verify/4 (src/jwtf.erl, line 212)
     in call from jwtf:decode/3 (src/jwtf.erl, line 30)

Modify key/1 and public_key_not_found_test/0 to account for keystore
changing from returning an error tuple to throwing one.
rnewson added a commit that referenced this pull request Jul 21, 2020
jaydoane pushed a commit that referenced this pull request Dec 14, 2020
Use config app instead of couch_config
jaydoane pushed a commit that referenced this pull request Dec 25, 2020
nickva pushed a commit to nickva/couchdb that referenced this pull request Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants