Skip to content

Unable to update the user record (can only create - not update) #2

@mistergibson

Description

@mistergibson

This is the flow of events:

client = Openfire::Client.new('http://192.168.11.205:9090', 'a_shared_secret')

user = client.users.find("bogus")
=> #<Openfire::Ruby::User(users) username="bogus" name="H. Bogus" email="[email protected]" password=nil properties=[]>

user.name="Henry Bogus"
=> "Henry Bogus"

user.save
=> false
user.response_errors
=> []

user.save!
1: from /var/lib/gems/2.5.0/gems/her-1.0.2/lib/her/model/orm.rb:59:in `save!'
Her::Errors::ResourceInvalid (Remote validation failed: )

So, I can create and pull records (read them), but I cannot seem to save them or update them in any way. Again, I can create records just fine. I suppose I could read in one record ... transfer the attributes over to a new one and do that -- but that's pretty nasty way to do this. I need working update functionality. Question is -- am I doing something wrong?

Thanks,

mistergibson

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions