Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Header: X-Object-Meta-django_cloudfiles_modified_hash, underscore replaced with dash. #1

Closed
pkimber opened this issue Sep 1, 2010 · 2 comments

Comments

@pkimber
Copy link

pkimber commented Sep 1, 2010

Not sure if this is an issue or not, but we recently had an issue where the hash value wasn't being read, so the files were being uploaded every time. We then had time-out issues etc.

It looks like the header key for the hash value was being changed from:

X-Object-Meta-django_cloudfiles_modified_hash

to:

X-Object-Meta-django-cloudfiles-modified-hash

To solve the issue, I edited:

django_cloudfiles/management/cloudfile.py

...and changed:

MOD_HASH_NAME = 'django_cloudfiles_modified_hash'

to:

MOD_HASH_NAME = 'django-cloudfiles-modified-hash'
@joe6pack
Copy link

I had this issue, as well. Same fix worked for me.

@rossdakin
Copy link
Owner

Thanks for the feedback, and sorry for the slow response.

I changed the value in revision 79ef8fc to use hyphens rather than underscores.

For anyone who hasn't manually made this change, you'll experience a re-upload of your media the first time you run publish_cloudfiles after updating to revision 79ef8fc, and your existing media's meta data will be mildly "polluted" with the old MOD_HASH_NAME.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants