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

Unable to update/overwrite a owner of multiple properties. #16

Open
imranau opened this issue Aug 2, 2019 · 1 comment
Open

Unable to update/overwrite a owner of multiple properties. #16

imranau opened this issue Aug 2, 2019 · 1 comment

Comments

@imranau
Copy link

imranau commented Aug 2, 2019

Unable to update/overwrite a owner of multiple properties.
Both PUT and POST do not work on '../resources/properties'. This is what I tried:

  1. curl -XPUT -H 'Content-Type: application/json' -u admin:1234 'http://localhost:8080/ChannelFinder/resources/properties' -d '
    [
    {"name": "setTestProp1", "owner": "cf-properties"},
    {"name": "setTestProp2", "owner": "cf-properties"}
    ]'
    New properties were created after this.

  2. curl -XPUT -H 'Content-Type: application/json' -u admin:1234 'http://localhost:8080/ChannelFinder/resources/properties' -d '
    [
    {"name": "setTestProp1", "owner": "cf-admins"},
    {"name": "setTestProp2", "owner": "cf-admins"}
    ]'
    The owner did not changed after this.

  3. curl -XPOST -H 'Content-Type: application/json' -u admin:1234 'http://localhost:8080/ChannelFinder/resources/properties' -d '
    [
    {"name": "setTestProp1", "owner": "cf-admins"},
    {"name": "setTestProp2", "owner": "cf-admins"}
    ]'
    The owner was not updated after this.
    The server log does not show any exception related to security authentication or otherwise.

Note: I have used embedded ldap. I have attached the server log.
log.txt

@shroffk
Copy link
Collaborator

shroffk commented Aug 2, 2019

This is not supported. I will add this to the list of changes to be made to the api documentation.

Changing properties is a rare enough event and changing multiple properties is even rarer...thus the changing ownership should be done on a single property/tag to avoid mistakes

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

2 participants