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

v1 beta 2: Some noise in activity emails ref deck #1755

Closed
putt1ck opened this issue Apr 24, 2020 · 8 comments · Fixed by #2117
Closed

v1 beta 2: Some noise in activity emails ref deck #1755

putt1ck opened this issue Apr 24, 2020 · 8 comments · Fixed by #2117

Comments

@putt1ck
Copy link

putt1ck commented Apr 24, 2020

Activity emails with deck content have first line similar to:

Rich subject or a parameter for "{user} has updated the description of the card {card} in stack {stack} on board {board}" is malformed

These are are followed by actual activity lines for Deck in the more expected form.

NC 18.0.4

@juliusknorr juliusknorr added this to the 🚀 Next major 1.0.0 milestone Apr 24, 2020
@juliusknorr juliusknorr modified the milestones: 1.0.1, 1.0.2 May 15, 2020
@juliusknorr juliusknorr modified the milestones: 1.0.2, 1.0.3 Jun 3, 2020
@putt1ck
Copy link
Author

putt1ck commented Jun 3, 2020

We're still seeing this in v1.02; wondering whether the more complete activity stream messages are a clue - specifically I think the malformed ones are related to changes to the description, both initial creation and edits thereof. Comments and card creation activities all appear to be reproduced in the emails, and the malformed email content all seems to match activity stream entries for description activity.

@mokkin
Copy link
Contributor

mokkin commented Jun 22, 2020

I can confirm this in v1.0.3:
DeepinBildschirmfoto_Bereich auswählen_20200622181031

@juliusknorr juliusknorr modified the milestones: 1.0.3, 1.0.4 Jun 23, 2020
@juliusknorr
Copy link
Member

Is this also the case in the activity stream in the web UI? Any change that one of you could get me either the failing entries of the oc_activity table or after generating and before the mail is sent the contents of the oc_activity_mq table?

@juliusknorr
Copy link
Member

Also is this only related to some cards or to all of them?

@putt1ck
Copy link
Author

putt1ck commented Jun 25, 2020

It's not consistent (I can see no pattern), not sure where the fail is - but now see that it's different fails in the stream and the email.

An example:

Entries in email:

`Today at 14:51

John User has created card Scratchpad/To Do List in stack Thoughts on board Contract edit & review
	
Today at 14:52
John User has created card Hidden Definitions in stack Thoughts on board Contract edit & review

Today at 14:55
Rich subject or a parameter for "{user} has updated the description of the card {card} in stack {stack} on board {board}" is malformed

Today at 14:55
Rich subject or a parameter for "{user} has updated the description of the card {card} in stack {stack} on board {board}" is malformed

Today at 14:55
John User has created card Figures and Words in stack Treated on board Contract edit & review

Today at 14:58
John User has created card Figures and Money definition in stack Thoughts on board Contract edit & review
	
Today at 14:58
John User has renamed the card Figures and Money definition to Figures and Money format
	
Today at 14:58
John User has renamed the card Figures and Money format to Figures and Money definition
	
Today at 15:00
Rich subject or a parameter for "{user} has updated the description of the card {card} in stack {stack} on board {board}" is malformed
	
Today at 15:00
Rich subject or a parameter for "{user} has updated the description of the card {card} in stack {stack} on board {board}" is malformed
	
Today at 15:00
Rich subject or a parameter for "{user} has updated the description of the card {card} in stack {stack} on board {board}" is malformed`


Equivalent entries from activity stream (same day, entire set from both):

`
  John User has updated the description of the card Figures and Money definition in stack Thoughts on board Contract edit & review
  20 days ago
  <pre class="visualdiff"><ins>[redacted]</ins></pre>
  John User has updated the description of the card Figures and Words in stack Treated on board Contract edit & review
  20 days ago
  <pre class="visualdiff"><ins>[redacted]<ins></pre>
  John User has updated the description of the card Hidden Definitions in stack Thoughts on board Contract edit & review
  20 days ago
  <pre class="visualdiff">Let's say you're drafting {redacted]has stuff like &quot;A phrase&quot; and like &quot;<del>mon</del><ins>figur</ins>e<del>y</del> and words&quot; data type.<ins> </ins></pre>
  John User has renamed the card Figures and Money format to Figures and Money definition
  20 days ago
  John User has renamed the card Figures and Money definition to Figures and Money format
  20 days ago
  John User has created card Figures and Money definition in stack Thoughts on board Contract edit & review
  20 days ago
  John User has created card Figures and Words in stack Treated on board Contract edit & review
  20 days ago
  John User has updated the description of the card Hidden Definitions in stack Thoughts on board Contract edit & review
  20 days ago
  <pre class="visualdiff"><ins> [redacted] again contains stuff like help with the &quot;money and words&quot; data type.</ins></pre>
  John User has updated the description of the card Scratchpad/To Do List in stack Thoughts on board Contract edit & review
  20 days ago
  <pre class="visualdiff"><ins>[redacted] </ins></pre>
  John User has created card Hidden Definitions in stack Thoughts on board Contract edit & review
  20 days ago
  John User has created card Scratchpad/To Do List in stack Thoughts on board Contract edit & review
  20 days ago`

@mokkin
Copy link
Contributor

mokkin commented Jun 28, 2020

In my case the message appears in the activity stream
DeepinBildschirmfoto_Bereich auswählen_20200628213942

but not in the mail
DeepinBildschirmfoto_Bereich auswählen_20200628214030

This is only for some messages, most of them are working correctly. After all the appearance of the class "visualdiff" in the stream is kind of suspicious.

btw: there might be a "sub issue".
In the email the link of the card is published as
https://cloud.example.de/apps/deck/#/board/16//card/63
but leads to a blank page caused by an additional / The real working URL is
https://cloud.example.de/apps/deck/#/board/16/card/63

@rubo77
Copy link

rubo77 commented Jul 8, 2020

see #1254 (comment)

This is definitely a activity issue !
See :
https://github.com/nextcloud/activity/blob/2c6ec88c465ff79342b6c5ffbce03625f10f08e4/lib/Data.php#L124

There is no check when doing the insert into activity_mq

@rubo77
Copy link

rubo77 commented Jul 8, 2020

can we close this as duplicate?

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

Successfully merging a pull request may close this issue.

4 participants