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
+2
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,8 @@ See [STATUS.md](server/STATUS.md) to learn more about which features will remain
54
54
- Add systemd instructions to readme #271
55
55
- Improve check_append error #558
56
56
- Fix errors on successful export / import #565
57
+
- Most Collection routes now live under `/collections`, e.g. `/collections/agents` instead of `/agents`. #556
58
+
- 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-1
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