Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Default ignoreProps array is missing X-MOZ-LASTACK and X-MOZ-GENERATION #94

Open
titanism opened this issue Feb 27, 2024 · 1 comment

Comments

@titanism
Copy link

Per

const ignoreProps = arr2hash(
aIgnoreProps || [
"SEQUENCE",
"DTSTAMP",
"LAST-MODIFIED",
"X-MOZ-GENERATION",
"X-MICROSOFT-DISALLOW-COUNTER",
"X-MOZ-SEND-INVITATIONS",
"X-MOZ-SEND-INVITATIONS-UNDISCLOSED",
]
);
the following two properties need added:

  • X-MOZ-LASTACK
  • X-MOZ-GENERATION

The change would look like this:

  compareContent(aFirstItem, aSecondItem, aIgnoreProps, aIgnoreParams) {
    const ignoreProps = arr2hash(
      aIgnoreProps || [
        "SEQUENCE",
        "DTSTAMP",
        "LAST-MODIFIED",
        "X-MOZ-GENERATION",
        "X-MICROSOFT-DISALLOW-COUNTER",
        "X-MOZ-SEND-INVITATIONS",
        "X-MOZ-SEND-INVITATIONS-UNDISCLOSED",
+        "X-MOZ-LASTACK",
+        "X-MOZ-GENERATION",
      ]
    );

A simple diff using diff -u a.ics b.ics | diff-so-fancy of a calendar synchronization of ICS files shows that these two properties are the only ones that change outside the ignored ones:

Screen Shot 2024-02-27 at 3 46 57 PM
@titanism
Copy link
Author

titanism commented Feb 27, 2024

Adding this might actually cause errors with generation mismatch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant