python - Are blob_key's for GCS entities safe to use later? -


here reference: https://developers.google.com/appengine/docs/python/blobstore/functions#create_gs_key

when upload file blobstoreuploadhandler, there blob_key stored in blob_info, i've tested using blob_key images.image(blob_key=blob_key) after 180 minutes, still functioned.

however documentation states that, blob_key create_gs_key has 60 minute access_token.

i'm not sure means , access_token used for, documentation states blob_key safe storing, i'm not sure "safe storing" is.

so can blob_key's gcs entities used indefinitely?

looking @ source code:

def create_gs_key(filename, rpc=none):   """create encoded key google storage file.    created blob key include short lived access token using   application's service account authorization.    blob key should not stored permanently access token   expire.    args:     filename: filename of google storage object create key for.     rpc: optional userrpc object.    returns:     encrypted blob key object contains short term access token       represents application's service account.   """   rpc = create_gs_key_async(filename, rpc)   return rpc.get_result() 

this contradicts documentation says:

you can safely persist blob key generated function can persist ordinary blob keys in blobstore api.

what suggest since using create_gs_key function, know filename want. such, store value generate blobkey use blobstore api everytime want interact file in question (e..g get or delete)

update: there bug report submitted fix documentation.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -