Direct links to /flag/confirm//... do not work with the following access denied error:

Bad token. You seem to have followed an invalid link.

In a (mass_messaging) email want to provide a link to directly unflag content, but obviously no valid tokens can be generated then. I need a work-around or feature to make it possible. Can somebody hint at a solution

CommentFileSizeAuthor
#5 rsvp_rules.txt986 bytesYorgg

Comments

joachim’s picture

Version: 7.x-3.0-rc1 » 7.x-3.x-dev
Status: Active » Postponed (maintainer needs more info)

Are you sure that's the case?

I've checked the menu item for 'flag/confirm/%/%flag/%' and its callback is the flag_confirm() form. That doesn't check the token.

The path that checks tokens is the JS link path, 'flag/%/%flag/%'.

ñull’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

I upgraded to 3.x-dev. With that version, yes the flag/confirm works without token, but flag/unflag still needs it, but I can live with that.

Yorgg’s picture

Status: Closed (won't fix) » Active

I am creating a RSVP feature with Flag and Rules but here's how the link looks like:

http://localhost/develphase/flag/unflag/bookmarks/365198?destination=admin/config/system/cron/execute/queue_rules_scheduler_tasks&token=m7EPAAQBqOQyG7p77p_cyl6xiuP61Vu7txUca5OxH50

Besides exposing the admin destination url, it only works if the user is logged in.
Perhaps with the help from tokenauth it could provide a one time login and then use the above token to unflag?

joachim’s picture

How on earth does your flag link get a cron destination? What is producing the link, and where?

> Perhaps with the help from tokenauth it could provide a one time login and then use the above token to unflag?

That sounds like a separate feature request.

Yorgg’s picture

Status: Closed (won't fix) » Active
StatusFileSize
new986 bytes

The link is being provided from the [content:flag-bookmarks-link] token in rules "send mail" component sending me this via email for the RSVP flag.

In the case user is offline, there is error message:

    Bad token. You seem to have followed an invalid link.

Please find attached my rules configuration maybe you can manage to make some light into this.

One last thing, sometimes the link doesn't show up in the email's html. The number of flagged items work. Any idea?

Yorgg’s picture

Issue summary: View changes

typo error

joachim’s picture

Status: Active » Closed (won't fix)

Could you file a new support request on the Rules component please?

Status: Active » Closed (won't fix)