迁移到HRD“此应用程序无权访问该Blob” [英] migrating to HRD "This application does not have access to that blob"

查看:115
本文介绍了迁移到HRD“此应用程序无权访问该Blob”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 从servlet未捕获到的异常
java.lang.SecurityException:此应用程序无权访问该Blob。
at com.google.appengine.api.blobstore.BlobstoreServiceImpl.fetchData(BlobstoreServiceImpl.java:200)
at com.droidastic.telljokes.server.servlet.ServeBlobsServlet.checkBlobKeyExists(ServeBlobsServlet.java:100)
at com.droidastic.telljokes.server.servlet.ServeBlobsServlet.doGet(ServeBlobsServlet.java:64)


解决方案

在我迁移到HRD之前,发生在我身上。我在数据存储中将我的密钥存储为数据存储中的字符串,当我迁移时,那些未重写的弦密钥。这真是一场噩梦。

无论如何,您的blobstore密钥可能不会被重写为指向HRD新应用中的新密钥。这可能是因为你将它们存储为一个字符串,或者是Java中BlobstoreKey的等价物。


I just migrated to HRD and now its telling me i cant access my own blobs...

Uncaught exception from servlet
java.lang.SecurityException: This application does not have access to that blob.
at com.google.appengine.api.blobstore.BlobstoreServiceImpl.fetchData(BlobstoreServiceImpl.java:200)
at com.droidastic.telljokes.server.servlet.ServeBlobsServlet.checkBlobKeyExists(ServeBlobsServlet.java:100)
at com.droidastic.telljokes.server.servlet.ServeBlobsServlet.doGet(ServeBlobsServlet.java:64)

解决方案

That happened to me before when I migrated to HRD. I had my keys stored as strings in the datastore, when I migrated, those stringed keys where not re-written. It was quite a nightmare.

Anyway, your blobstore keys were probably not re-written to point to the new keys in your new app in HRD. It could be because you stored them as a string or something other than the equivalent of BlobstoreKey in Java.

这篇关于迁移到HRD“此应用程序无权访问该Blob”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆