Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8770235
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T17:31:21+00:00 2026-06-13T17:31:21+00:00

Using the unofficial Perl binding of the Rackspace Cloud API [ Github ], I

  • 0

Using the unofficial Perl binding of the Rackspace Cloud API [Github], I can’t for the life of me set or retrieve the metadata of a given object.

I can successfully pull files down from the cloud, but when I call object_metadata as defined in the documentation I get an error complaining about uninitialized value. I can verify through the Cloud Files manager that a value is set for Status in the metadata. I’ve even tried checking for X-Object-Meta-Status (with no success).

Relevant code is as follows:

# authentication
# set $container to pre-made container
my @files = $container->objects(prefix => 'tainted/')->all;
FILE: foreach my $file(@files) {

  # throws undefined // have tried capitalized and not, quotes and none
  next FILE if $file->object_metadata->{'status'} != '-1';

  # download file from object & do stuff with it

  # does not update object in cloud (not sure if anything id done locally)
  $file->object_metadata({ status => $status });

}

Like I said, objects are successfully being retrieved, I just am not able to view meta on a given file. I’ve played with some variations of what is above, but each test of a new approach costs bandwidth (money!). Any help would be very much appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T17:31:21+00:00Added an answer on June 13, 2026 at 5:31 pm

    I’ve got the feeling that the metadata is not being set at all. Let’s take a look at WebService::Rackspace::CloudFiles::Object, which is built using Moose:

    has 'object_metadata' => (
        is => 'rw',
        isa => 'HashRef',
        required => 0,
        default => sub {
            return {};
        }
    );
    

    So there’s an optional property object_metadata, which can be retrieved using the built-in selector. Great!

    The objects that are being returned by $container->objects are created in WebService::Rackspace::CloudFiles::Container like this (snipped):

    foreach my $bit (@bits) {
      push @objects,
        WebService::Rackspace::CloudFiles::Object->new(
        cloudfiles => $self->cloudfiles,
        container => $self,
        name => $bit->{name},
        etag => $bit->{hash},
        size => $bit->{bytes},
        content_type => $bit->{content_type},
        last_modified => $bit->{last_modified},
      );
    }
    

    So if I see this correctly, there’s no object_metadata property in this call, which is fine because it’s optional. But if it’s not set, it makes sense that you retrieve an empty hashref, doesn’t it?

    I’d say you might want to patch that in yourself. :-/


    I did a little more digging: In the CloudFiles docs it says that the metadata is returned in the HTTP header of the result. The docs on how to retrieve metadata on its own gives a good explanation of how it is transmitted. But unfortunately, there is no parsing going on for that in the module for sure.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to interface with the Google Reader (undocumented/unofficial) API using information from this
I am trying to build an application using the unofficial Google music api for
using this http://bl.ocks.org/950642 we can see how to add images to nodes, the question
Using Location.getBearing(); I seem to get randomly changing bearings. Aka, I can turn the
Using Android TelephonyManager an application can obtain the state of data activity over the
Where can I find a list of official and unofficial Visual Basic 6 specifications
I'm using the unofficial python sdk for Facebook. This works fine for alot of
I am searching for some way of using any Google API or android framework
Using the navigator.geolocation object in JavaScript. Trying to establish accurate ranges, but wondering exactly
How can one handle email related communications pragmatically in Erlang/OTP? Using bash, python or

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.