Skip to content

Conversation

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented Nov 3, 2025

Original issue description

Describe the bug

The user is unable to perform an update on an annotation that adds a via property.

To Reproduce
Steps to reproduce the behavior:

  1. create anntation without using the via property
  2. PUT via to annotation
  3. get Error

    "status":"409",
    "error":"UnallowedPropertyChangeException",
    "message":"via properties cannot change",

Expected behavior

The error likely stems from this claim in the WAP

Servers SHOULD reject update requests that modify the values of the canonical or via properties, if they have been already set, unless business logic allows the request to be trusted as authoritatively correctly a previous error.

https://www.w3.org/TR/annotation-protocol/#update-an-existing-annotation

However, this should never trigger if the via field does NOT pre-exist.
This bug likely also concerns the canonical property

closes #65

@github-actions github-actions bot added bug Something isn't working java Pull requests that update java code labels Nov 3, 2025
@GGoetzelmann GGoetzelmann force-pushed the issue-65-PUT_Annotation_with_added_via_field_results_in_erronous_HTTP_409 branch from 7876c4d to 1c18d0d Compare November 3, 2025 16:42
@GGoetzelmann GGoetzelmann merged commit 136c7df into development Nov 3, 2025
24 of 28 checks passed
@GGoetzelmann GGoetzelmann mentioned this pull request Dec 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working java Pull requests that update java code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants