brian-zhao / google-app-engine-django

Automatically exported from code.google.com/p/google-app-engine-django
Apache License 2.0
0 stars 0 forks source link

BadRequestError: app "google-app-engine-django" cannot access app "MY_APP"'s data in IntegrationTest.testBasic #198

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. run manage.py test with SDK 1.5.3 or higher

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

This test fails:  appengine_django/tests/__init__.py:IntegrationTest.testBasic

This is the traceback with an app named MY_APP

Traceback (most recent call last):
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver.py", line 4133, in _HandleRequest
    dev_appserver_index.SetupIndexes(config.application, root_path)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/tools/dev_appserver_index.py", line 305, in SetupIndexes
    existing_indexes = datastore_admin.GetIndices(app_id)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/api/datastore_admin.py", line 50, in GetIndices
    resp = _Call('GetIndices', req, resp)
  File "/Applications/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/google/appengine/api/datastore_admin.py", line 104, in _Call
    raise datastore._ToDatastoreError(err)
BadRequestError: app "google-app-engine-django" cannot access app "MY_APP"'s 
data
root: INFO: "GET / HTTP/1.1" 500 -

What version of the product are you using? On what operating system?

SDK 1.5.3 with revision 114 and a patch for new SDK paths

Please provide any additional information below.

I know there was another issue causing this test to fail.  It probably passes 
in app engine helper's own test suite.

Original issue reported on code.google.com by kumar.mcmillan on 18 Aug 2011 at 4:06

GoogleCodeExporter commented 8 years ago
Cannot reproduce on clean svn checkout.

Original comment by m...@google.com on 20 Aug 2011 at 4:23

GoogleCodeExporter commented 8 years ago
Sorry I wasn't clear in the step to reproduce.  It only happens when 
appengine_django is installed into a new app with a unique app.yaml file.  To 
reproduce: follow the installation instructions here: 
http://code.google.com/p/google-app-engine-django/source/browse/trunk/README

Specifically:

1) Copy the appengine_helper_for_django directory to a new location named after
   your project

2) Edit the application line in app.yaml to match the name you registered your
   application under in the Admin Console.

3) Run manage.py test

Then you should see the failure.

Original comment by kumar.mcmillan on 20 Aug 2011 at 4:27

GoogleCodeExporter commented 8 years ago
Ok, I can reproduce with those steps. Thanks. Fix on the way.

Original comment by m...@google.com on 20 Aug 2011 at 5:35

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r117.

Original comment by m...@google.com on 20 Aug 2011 at 5:35