From f56fc3d1d3cf55df26b51be5302ec70caedebb01 Mon Sep 17 00:00:00 2001 From: Mahdi Baghbani Date: Tue, 19 Aug 2025 23:31:32 +0330 Subject: [PATCH 1/4] add: proper url spec for ocm server url --- IETF-RFC.md | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/IETF-RFC.md b/IETF-RFC.md index f449b0e0..a78eadb9 100644 --- a/IETF-RFC.md +++ b/IETF-RFC.md @@ -1114,7 +1114,14 @@ format: Servers exposed by the Directory Service * REQUIRED: `servers` - a JSON array of objects to describe the list of OCM Servers with the following string fields: - * REQUIRED: `url` - the OCM Server's FQDN + * REQUIRED: `url` - an absolute URL identifying the + OCM Server. It MUST: + * include scheme `http://` or `https://` + * include host + (either a FQDN or IP address, with an optional PORT) + * MAY include a non-default port + * MUST NOT include a base path (e.g., `/ocm`) + * MUST NOT include userinfo, query, or fragment * REQUIRED: `displayName` - a human-readable name for the OCM Server Example: ```json @@ -1122,12 +1129,16 @@ format: "federation" : "The ScienceMesh Directory", "servers" : [ { - "url" : "https://ocm-server-1.fqdn", + "url" : "https://ocm-server-1.example.org", "displayName" : "OCM Server 1" }, { - "url" : "https://ocm-server-2.fqdn", + "url" : "https://ocm-server-2.example.org:4443", "displayName" : "OCM Server 2" + }, + { + "url" : "http://192.168.1.1:8080", + "displayName" : "OCM Server 3" } ] } From c6a330612d4ae4300a53745ab02661b8dd948b7c Mon Sep 17 00:00:00 2001 From: Mahdi Baghbani Date: Wed, 20 Aug 2025 10:27:45 +0330 Subject: [PATCH 2/4] Update IETF-RFC.md Co-authored-by: Giuseppe Lo Presti --- IETF-RFC.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/IETF-RFC.md b/IETF-RFC.md index a78eadb9..8612ace0 100644 --- a/IETF-RFC.md +++ b/IETF-RFC.md @@ -1117,8 +1117,7 @@ format: * REQUIRED: `url` - an absolute URL identifying the OCM Server. It MUST: * include scheme `http://` or `https://` - * include host - (either a FQDN or IP address, with an optional PORT) + * include host (either a FQDN or an IP address) * MAY include a non-default port * MUST NOT include a base path (e.g., `/ocm`) * MUST NOT include userinfo, query, or fragment From 8aaf4f4254ebfc304c9888ebdca1022bcd8844b8 Mon Sep 17 00:00:00 2001 From: Mahdi Baghbani Date: Wed, 20 Aug 2025 10:27:51 +0330 Subject: [PATCH 3/4] Update IETF-RFC.md Co-authored-by: Giuseppe Lo Presti --- IETF-RFC.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IETF-RFC.md b/IETF-RFC.md index 8612ace0..b3d972bd 100644 --- a/IETF-RFC.md +++ b/IETF-RFC.md @@ -1116,7 +1116,7 @@ format: of OCM Servers with the following string fields: * REQUIRED: `url` - an absolute URL identifying the OCM Server. It MUST: - * include scheme `http://` or `https://` + * include scheme: either `https://` or (for testing purposes) `http://` * include host (either a FQDN or an IP address) * MAY include a non-default port * MUST NOT include a base path (e.g., `/ocm`) From 78843883df0aaeda4d8d4eacb07242cec52a336a Mon Sep 17 00:00:00 2001 From: Mahdi Baghbani Date: Wed, 20 Aug 2025 10:29:48 +0330 Subject: [PATCH 4/4] fix: document len less than 72 --- IETF-RFC.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/IETF-RFC.md b/IETF-RFC.md index b3d972bd..4e54104d 100644 --- a/IETF-RFC.md +++ b/IETF-RFC.md @@ -1116,12 +1116,14 @@ format: of OCM Servers with the following string fields: * REQUIRED: `url` - an absolute URL identifying the OCM Server. It MUST: - * include scheme: either `https://` or (for testing purposes) `http://` + * include scheme: either `https://` or + (for testing purposes) `http://` * include host (either a FQDN or an IP address) * MAY include a non-default port * MUST NOT include a base path (e.g., `/ocm`) * MUST NOT include userinfo, query, or fragment - * REQUIRED: `displayName` - a human-readable name for the OCM Server + * REQUIRED: `displayName` - a human-readable name + for the OCM Server Example: ```json {