remotestorage / remotestorage.js

⬡ JavaScript client library for integrating remoteStorage in apps
https://remotestoragejs.readthedocs.io
MIT License
2.31k stars 141 forks source link

Test app treats errors when fetching values incorrectly. #74

Closed untitaker closed 12 years ago

untitaker commented 12 years ago

It says that the value is empty.

Using the ownCloud remoteStorage plugin. The server certificate is invalid, which might be the problem.

nilclass commented 12 years ago

Could you provide the error message and possibly a trace?

untitaker commented 12 years ago

How?

The JavaScript console just says that it fails to load the resource, and a log message that foo doesn't contain a value.

nilclass commented 12 years ago

You can't prevent the javascript console to print HTTP errors (which is a good thing). Could you paste the message that says it doesn't contain a value - and possibly the line it was printed?

untitaker commented 12 years ago

http://tutorial.unhosted.5apps.com/

There wasn't anything for "public/tutorial/foo"

-- tutorial.js:107

For weird reasons, it works now.

untitaker commented 12 years ago

However, there seems an issue with the remoteStorage plugin for ownCloud when revoking access for an unhosted app. In the .htaccess file generated by ownCloud, the following line causes a 404 when accessing /apps/remoteStorage/ajax/revokeToken.php:

RewriteRule ^apps/([^/]*)/(.*\.(css|php))$ index.php?app=$1&getfile=$2 [QSA,L]

Changing that to

RewriteRule ^apps/([^/]*)/(.*\.(css|php))$ /index.php?app=$1&getfile=$2 [QSA,L]

works.