long file names suddenly not working?

9 views
Skip to first unread message

dinoD

unread,
Aug 31, 2010, 10:54:51 AM8/31/10
to Google Storage for Developers
did anything get changed last night to stop long file names from
working? I'm basically serving image files by having my server grab
the image file with a GET request, then i'm renaming the file, then
i'm sending it to the client (so i can hide the file name from the
client). it has been working just fine for weeks, but suddenly, last
night, it stopped. if i grab an image file from GS, download it,
rename it to a shorter name, and send it back up, it works fine, but
like i said, this suddenly broke last night around 9 pm EST. anyone
have any ideas if something was changed last night?

thanks for any help,
dino

Mike Schwartz (Google Storage Team)

unread,
Aug 31, 2010, 12:16:36 PM8/31/10
to gs-dis...@googlegroups.com
Hi Dino,

I'm not sure I understand what operations you're performing. Can you
please provide an example of the sequence of RESTful requests you're
making to GS, including the path names? If you have privacy/propriety
concerns it's fine to use made-up names.

Thanks
- Mike

> --
> You received this message because you are subscribed to the Google Groups "Google Storage for Developers" group.
> To post to this group, send email to gs-dis...@googlegroups.com.
> To unsubscribe from this group, send email to gs-discussio...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/gs-discussion?hl=en.
>
>

dinoD

unread,
Aug 31, 2010, 12:36:42 PM8/31/10
to Google Storage for Developers
Hi Mike- thanks for the response.

I have publicly available images that I'm using. Here's an example:

http://baffle.commondatastorage.googleapis.com/97e66633a0ad876b00ddf35e76dae84e48f812ad.jpg

Note, this is binary data, so you have to wrap it in an img tag to see
it:

<img src = "http://baffle.commondatastorage.googleapis.com/
97e66633a0ad876b00ddf35e76dae84e48f812ad.jpg"/>

Now, what I'm trying to do is hide that image file name from the end
user. So what i've been doing is, on the server, I grab that file
myself (the client has an img tag whose source is my server):

file = google_client.get_object('baffle', image.image_file)

(i'm using rails with the gstore gem, and google_client is the
initialized instance)

Then, I send it down to the client:

send_data file,
:type => "image/jpeg",
:disposition => 'inline',
:name => Digest::SHA1.hexdigest("#{Time.now.to_s}
#{rand(1000000).to_s}.jpg")


This sends the file with a new name. And, every time the image is
requested, it gets a new name and this way the user cannot identify
the file name and access it on his own, directly from GS (which is my
goal).

This was working just fine, for the past 5 weeks or so. No problems
whatsoever. Suddenly, last night, this stopped working. It appears
that only long file names are broken, because I have some shorter file
names that work just fine. And, if I take a file, shorten it's name,
upload it to GS, and do the exact same call on my server, it works
fine.

Let me know if you need anything clarified, and thanks again for the
response.

Dino




On Aug 31, 12:16 pm, "Mike Schwartz (Google Storage Team)" <gs-
t...@google.com> wrote:
> Hi Dino,
>
> I'm not sure I understand what operations you're performing. Can you
> please provide an example of the sequence of RESTful requests you're
> making to GS, including the path names? If you have privacy/propriety
> concerns it's fine to use made-up names.
>
> Thanks
>  - Mike
>

dinoD

unread,
Aug 31, 2010, 4:05:52 PM8/31/10
to Google Storage for Developers
ok, this is really weird. it turns out that it wasn't the act of
shortening the file that fixed things, it was the act of re-uploading
the image. if i grab the image, and re-drop it on the google
dashboard, it works just fine. so for some reason, prior to 9 pm last
night, the google servers were serving up images just fine with my
method, and after 9, they stopped. recopying them back to the server
seems to fix things. this is a huge pain, so if you have any help you
might offer, i'd appreciate it, as i would love to avoid copying
everything down and back up.

dino

On Aug 31, 12:36 pm, dinoD <kapau...@gmail.com> wrote:
> Hi Mike- thanks for the response.
>
> I have publicly available images that I'm using.  Here's an example:
>
> http://baffle.commondatastorage.googleapis.com/97e66633a0ad876b00ddf3...

Mike Schwartz (Google Storage Team)

unread,
Aug 31, 2010, 8:58:25 PM8/31/10
to gs-dis...@googlegroups.com
Dino,

Can you please try your app again - I believe it should work now.
 - Mike 

dinoD

unread,
Sep 1, 2010, 10:37:10 AM9/1/10
to Google Storage for Developers
Yep fixed! Thanks Mike. Can you give any info on what happened? Did
something go live around the time it broke?

Thanks again,
dino

On Aug 31, 8:58 pm, "Mike Schwartz (Google Storage Team)" <gs-
t...@google.com> wrote:
> Dino,
>
> Can you please try your app again - I believe it should work now.
>  - Mike
>
> > gs-discussio...@googlegroups.com<gs-discussion%2Bunsu...@googlegroups.com>
> > .
> > > > > For more options, visit this group athttp://
> > groups.google.com/group/gs-discussion?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google Storage for Developers" group.
> > To post to this group, send email to gs-dis...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > gs-discussio...@googlegroups.com<gs-discussion%2Bunsu...@googlegroups.com>
> > .

Mike Schwartz (Google Storage Team)

unread,
Sep 1, 2010, 3:00:20 PM9/1/10
to gs-dis...@googlegroups.com
Dino,

Yes, there was a server update around that time. Please note that no data was affected by this issue.
 - Mike

To unsubscribe from this group, send email to gs-discussio...@googlegroups.com.

dinoD

unread,
Sep 22, 2010, 9:47:49 AM9/22/10
to Google Storage for Developers
Hi Mike-

This problem has appeared again. All of the images that were uploaded
programatically no longer work in <img> tags. I have changed nothing
in my code, but this popped up again. Can you see if the same thing
has happened?

Thanks,
Dino

On Sep 1, 3:00 pm, "Mike Schwartz (Google Storage Team)" <gs-
t...@google.com> wrote:
> Dino,
>
> Yes, there was a server update around that time. Please note that no data
> was affected by this issue.
>  - Mike
>
> > <gs-discussion%2Bunsu...@googlegroups.com<gs-discussion%252Buns...@googlegroups.com>
>
> > > > .
> > > > > > > For more options, visit this group athttp://
> > > > groups.google.com/group/gs-discussion?hl=en.
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "Google Storage for Developers" group.
> > > > To post to this group, send email to gs-dis...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > gs-discussio...@googlegroups.com<gs-discussion%2Bunsu...@googlegroups.com>
> > <gs-discussion%2Bunsu...@googlegroups.com<gs-discussion%252Buns...@googlegroups.com>

Mike Schwartz (Google Storage Team)

unread,
Sep 23, 2010, 10:24:37 AM9/23/10
to gs-dis...@googlegroups.com
Dino,

I just now tried uploading an image and then viewing an HTML doc that references if from an <img> tag, and it worked. Can you please send the output of the following command, so I can investigate further? If you would prefer not to post this in the public forum for data privacy reasons let me know. Thanks.

The command to run:
gsutil -D ls -L gs://your_bucket/your_image_obj

 - Mike

To unsubscribe from this group, send email to gs-discussio...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages