dewitt / webfingerclient-dclinton

Automatically exported from code.google.com/p/webfingerclient-dclinton
Apache License 2.0
1 stars 0 forks source link

Redirects to HTML page when retrieving a nonexistent identifier #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. curl --verbose
'http://webfingerclient-dclinton.appspot.com/lookup?identifier=does_not_exist_at
_all_no_sirree@example.org&format=json&pretty=true'

What is the expected output? What do you see instead?

Expected:  An error from the server, or an empty data set.  A 404 Not Found
would be appropriate I think.  An empty data set would be reasonable too.

Actual:

A 302 redirect to 

 http://webfingerclient-dclinton.appspot.com/?error=Could%20not%20fetch%20http%3A//example.org/.well-known/host-meta.%20Status%20404

Which is not particularly useful when you're trying to do server to server
JSON requests :)

Original issue reported on code.google.com by jpanzer@google.com on 29 Dec 2009 at 8:41