You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,6 +23,8 @@ See [STATUS.md](server/STATUS.md) to learn more about which features will remain
23
23
- Update JS assets & playwright
24
24
- Fix initial indexing bug #560
25
25
- Improve check_append error #558
26
+
- Most Collection routes now live under `/collections`, e.g. `/collections/agents` instead of `/agents`. #556
27
+
- Constrain new URLs. Commits for new Resources are now only valid if their parent is part of the current URL. So it's no longer possible to create `/some-path/new-resource` if `new-resource` is its parent is not in its URL. #556
Copy file name to clipboardExpand all lines: server/src/handlers/commit.rs
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ pub async fn post_commit(
13
13
letmut builder = HttpResponse::Ok();
14
14
let incoming_commit_resource = parse_json_ad_commit_resource(&body, store)?;
15
15
let incoming_commit = Commit::from_resource(incoming_commit_resource)?;
16
-
if store.is_external_subject(&incoming_commit.subject)? {
16
+
if store.is_external_subject(&incoming_commit.subject)? {
17
17
returnErr("Subject of commit is external, and should be sent to its origin domain. This store can not own this resource. See https://github.com/atomicdata-dev/atomic-data-rust/issues/509".into());
18
18
}
19
19
let opts = CommitOpts{
@@ -24,6 +24,7 @@ if store.is_external_subject(&incoming_commit.subject)? {
0 commit comments