Andreas Schildbach [ARCHIVE] on Nostr: 📅 Original date posted:2012-01-31 📝 Original message:On 01/31/2012 11:22 AM, ...
📅 Original date posted:2012-01-31
📝 Original message:On 01/31/2012 11:22 AM, Wladimir wrote:
> To ensure forward compatibility with optional fields, we need to define
> how a client handles fields that it doesn't know about.
>
> When should it display an error message, and when should it silently
> accept and ignore the extraneous fields?
IMHO its standard that unknown URL parameters are simply ignored. I
think we should not change this principle.
> (For example, if something that restricts the validity, such
> as "expires" is added later on, it is pretty important not to ignore it.
> Older clients should refuse to comply.)
In this case, you'd need to refuse *all* parameters you don't know
about. In consequence, all extensions would break older clients.
Published at
2023-06-07 02:59:47Event JSON
{
"id": "14a714ba12022449f98a0260a68841fd2f02f2ce9ae70562486bdad62c984306",
"pubkey": "3215b3d77dff1f84eeb5ad46fb1206a8d1657b3ea765a80b5489ece3a702d2bc",
"created_at": 1686106787,
"kind": 1,
"tags": [
[
"e",
"3e5956a8acf8033ec81960cff0126fd9c6cb72d9935ba44f4558ea419f8c85b8",
"",
"root"
],
[
"e",
"8c0e6115781bff702212354eff62a212cb56865793cc34bf7c91edc8d69b8bca",
"",
"reply"
],
[
"p",
"30217b018a47b99ed4c20399b44b02f70ec4f58ed77a2814a563fa28322ef722"
]
],
"content": "📅 Original date posted:2012-01-31\n📝 Original message:On 01/31/2012 11:22 AM, Wladimir wrote:\n\n\u003e To ensure forward compatibility with optional fields, we need to define\n\u003e how a client handles fields that it doesn't know about.\n\u003e \n\u003e When should it display an error message, and when should it silently\n\u003e accept and ignore the extraneous fields?\n\nIMHO its standard that unknown URL parameters are simply ignored. I\nthink we should not change this principle.\n\n\u003e (For example, if something that restricts the validity, such\n\u003e as \"expires\" is added later on, it is pretty important not to ignore it.\n\u003e Older clients should refuse to comply.)\n\nIn this case, you'd need to refuse *all* parameters you don't know\nabout. In consequence, all extensions would break older clients.",
"sig": "2cd707615dd530717ba7de2b1c2b733a31334105299315c7603d8c5426a03e2111438584b4526ff53585cbccbb1cec23de8ab9b4a025cbaeb1dff43ef7989a37"
}