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
@@ -46,6 +46,8 @@ See [STATUS.md](server/STATUS.md) to learn more about which features will remain
46
46
- Add systemd instructions to readme #271
47
47
- Improve check_append error #558
48
48
- Fix errors on successful export / import #565
49
+
- Most Collection routes now live under `/collections`, e.g. `/collections/agents` instead of `/agents`. #556
50
+
- 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