notyou / freebase-site

Automatically exported from code.google.com/p/freebase-site
0 stars 0 forks source link

Deleting a base fails with "Error fetching external URL" #35

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Steps: 
1. choose a base you administer or create a new one, e.g. 
http://www.sandbox-freebase.com/schema/base/testingtypestwo
2. select Domain Setting > Delete this domain > Delete

Actual result:
Error on page: "Error fetching external URL"

JSON response:
{
  "status" : "500 Service Error",
  "code" : "/api/status/error",
  "messages" : [
    {
      "message" : "Error fetching external URL",
      "code" : "/api/status/error/service/external",
      "info" : {
        "code" : "/api/status/error/auth",
        "messages" : [
          {
            "code" : "/api/status/error/failure",
            "info" : {
              "no_cache" : true,
              "tid" : "cache;cache02.sandbox.sjc1:8101;2010-11-20T01:17:07Z;0006"
            },
            "message" : "Authentication required."
          }
        ],
        "status" : "400 Bad Request",
        "transaction_id" : "cache;cache02.sandbox.sjc1:8101;2010-11-20T01:17:07Z;0006"
      }
    }
  ],
  "transaction_id" : "cache;cache01.sandbox.sjc1:8101;2010-11-20T01:17:07Z;0001",
  "timestamp" : "2010-11-20T01:17:07Z"
}

Original issue reported on code.google.com by j...@google.com on 20 Nov 2010 at 1:33

GoogleCodeExporter commented 9 years ago
Note, I *was* able to successfully delete a domain of type /user/xxx/* but 
haven't found an example where deleting a base of type /base/* succeeds.

Original comment by j...@google.com on 20 Nov 2010 at 1:35

GoogleCodeExporter commented 9 years ago
This is a known issue with priviledged writes since you have to have permission 
on /base to remove your domain key.

To test and enable this on sandbox/otg, we need to:

1. Add "appeditoruser" has the primary writer of the schema app when NOT using 
oauth.
     You can do this by:
     1a. Signing in with "appeditoruser"
     1b. Open up the schema app in appeditor (e.g., http://www.sandbox-freebase.com/appeditor#!path=//schema.site.freebase.dev)
     1c. Go to the "Web Services" tab and check "Allow <appeditoruser> to write on behalf of any user"

2. Make sure "appeditoruser" is an admin of /base

@jasondouglas knows more about this particular issue. Re-assigning.

Original comment by daep...@google.com on 22 Nov 2010 at 7:28

GoogleCodeExporter commented 9 years ago
Done on OTG and Sandbox.

Original comment by jasondou...@google.com on 22 Nov 2010 at 8:07

GoogleCodeExporter commented 9 years ago
Dae, Jason's done his part. Delete still fails with the same error on Sandbox. 
Is there more you have to do here?

Original comment by j...@google.com on 24 Nov 2010 at 10:28

GoogleCodeExporter commented 9 years ago
This bug has been migrated to http://bugs.freebase.com/browse/SITE-647

Original comment by j...@google.com on 17 Dec 2010 at 10:49

GoogleCodeExporter commented 9 years ago

Original comment by j...@google.com on 17 Dec 2010 at 10:49

GoogleCodeExporter commented 9 years ago

Original comment by j...@google.com on 17 Dec 2010 at 10:51