Loading...
 
Skip to main content

Profile application via wizard or Suggested Profiles quietly fails on Tiki 17+

Status
Open
Subject
Profile application via wizard or Suggested Profiles quietly fails on Tiki 17+
Version
17.x
17.x Regression
18.x
20.x
Category
  • Regression
Feature
Installer (profiles, upgrades and server-related issues)
Wizards - Profiles Wizard
Resolution status
Please retest
Submitted by
Xavier de Pedro
Volunteered to solve
Jonny Bradley
Lastmod by
Xavier de Pedro
Rating
(0)
Related-to
Description

Example of url generated through the Profiles Wizard:
http://xavi-9794-6372.show.tikiwiki.org/tiki-admin.php?profile=Bug_Tracker_16&show_details_for=Bug_Tracker_16&categories%5B%5D=17.x&repository=http%3a%2f%2fprofiles.tiki.org%2fprofiles&page=profiles&preloadlist=y&list=List#step2

Example of equivalent profile applied through the Profiles Control panel:
http://xavi-9794-6372.show.tikiwiki.org/tiki-admin.php?ticket=4884aea2d5b951c86ed8b5fba540158a&daconfirm=y&profile=Bug_Tracker_16&repository=&page=profiles&redirect=0&list=Find

That show.t.o instance has:
u: admin
p: 12345

Through control panel there sems to be some ticket param which is missing in the profiles wizard. Is this just the only thing which is missing?


UPDATE
17.x svn ( Last update from SVN (17.2svn): Monday October 9, 2017 16:39:25 GMT-0200 - REV 64187 (MyISAM) ) is confirmed to suffer from this issue still. Please, pay attention to the fact that the button to apply the profile is shown, but when you click, the page reloads, and no profile is applied.
URL from profiles wizard is still like:
http://xavi-9794-6374.show.tikiwiki.org/tiki-admin.php?profile=Collaborative_Community_12x&show_details_for=Collaborative_Community_12x&categories%5B%5D=17.x&categories%5B%5D=Featured+profiles&repository=http%3a%2f%2fprofiles.tiki.org%2fprofiles&page=profiles&preloadlist=y&list=List#step2

u: admin
p: 12345



This is a regression from rrev:61862. The "$access->ticketMatch()" condition returns false, because the checkAuthenticity() method (called from tiki-admin.php) sets its property to false because a ticket is missing. And because the daconfirm request parameter is missing, the failure is silent.

Pending re-test and backports to 18.x.

Solution

Fixed ages ago in 17.x, sorry not updated (you can't actually apply a profile from as url now, not sure you could before, but it show the right profile and the button to apply it). this claim seems to be invalid, as indicated in the bug description weeks ago , and recently also reported by users in irc:
https://irc.tiki.org/irclogger_log/tikiwiki?date=2017-10-25,Wed&sel=6#l2

The working solution is adding the missing &ticket={ticket type=get} param to the URLs linking the profiles in the Wizard tpls (so the profiles are applicable then when listed on the Profiles control panel).

Importance
9
Easy to solve?
8
Priority
72
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
6374
Created
Sunday 25 June, 2017 18:50:13 UTC
by Xavier de Pedro
LastModif
Saturday 06 July, 2019 10:55:34 UTC


Show PHP error messages