Hello,
FYI. Choosing an Urgency when creating an user request in the portal gives the following debug trace:
"No result for the single row query: 'SELECT DISTINCT Service_service.id AS Serviceid, Service_service.name AS Servicename, Service_service.org_id AS Serviceorg_id, Organization_org_id_organization.name AS Serviceorganization_name, Service_service.servicefamily_id AS Serviceservicefamily_id, ServiceFamily_servicefamily_id_servicefamilly.name AS Serviceservicefamily_name, Service_service.description AS Servicedescription, Service_service.status AS Servicestatus, CAST(CONCAT(COALESCE(Service_service.name, '')) AS CHAR) AS Servicefriendlyname, CAST(CONCAT(COALESCE(Organization_org_id_organization.name, '')) AS CHAR) AS Serviceorg_id_friendlyname, CAST(CONCAT(COALESCE(ServiceFamily_servicefamily_id_servicefamilly.name, '')) AS CHAR) AS Serviceservicefamily_id_friendlyname FROM service AS Service_serviceINNER JOIN (organization AS Organization_org_id_organization ) ON Service_service.org_id = Organization_org_id_organization.idLEFT JOIN (servicefamilly AS ServiceFamily_servicefamily_id_servicefamilly ) ON Service_service.servicefamily_id = ServiceFamily_servicefamily_id_servicefamilly.id WHERE ((Service_service.id = '1') AND (Service_service.org_id IN ('2'))) '
Debug trace:
0 /home/vagrant/aranya-itop/core/metamodel.class.php(5088): MetaModel::MakeSingleRow('Service', '1', true, false, NULL)
1 /home/vagrant/aranya-itop/application/wizardhelper.class.inc.php(116): MetaModel::GetObject('Service', '1')
2 /home/vagrant/aranya-itop/pages/ajax.render.php(560): WizardHelper->GetTargetObject()
3 {main}"
Best regards,
Simon
To be investigated...
Hello,
I have exactly the same issue. Meanwhile, is it possible to disable this debug trace for our customers ?
Best regards,
Stephen
Last edit: Stephen 2015-04-07
As a workaround, the attached file will disable any error output in the user portal.
Copy it anywhere and then execute:
Exact same issue here.
Gonna try max's workaround.
EDIT: Workaround works!
Last edit: seemax1991 2015-05-05
First part of the fix: the debug trace has been removed from the output. Committed (some time ago, by Denis) in trunk as [r3606] and in branch 2.1.0 as [r3589].
To reproduce:
1) Install with default options (simple tickets)
2) Create user with the profile "User Portal", the contact "Claude Monet" and allow the organization "Demo"
3) Logoff / Login to the portal
4) New user request (Computer & peripherals, New desktop ordering)
5) Select a value in ANY of the dropdowns (impact or urgency)
Notes:
Related
Commit: <Commit _id='5358055aa02bb175d1406271:3606' tree_id='96a4e43aff561e29a1c3a4595cade268bcca5c84' committed=I{'date': datetime.datetime(2015, 6, 23, 14, 16, 46, 249000), 'email': '', 'name': 'dflaven'} authored=I{'date': datetime.datetime(2015, 6, 23, 14, 16, 46, 249000), 'email': '', 'name': 'dflaven'} message='Bulk Export redesign, addressing the tickets:\n#1071 Bulk Read access rights\n#1034 List of fields for Excel export\n#772 Some attributes not exportedvia export.php\nMain features:\n- list and order of the fields taken into account\n- interactive mode to specify all the parameters interactively (including the list and the order of fields)\n- same behavior for all the formats: html, CSV, spreadsheet, XML\n- new PDF export' parent_ids=I['5358055aa02bb175d1406271:3605'] child_ids=I['5358055aa02bb175d1406271:3607'] repo_ids=I[ObjectId('5358055aa02bb175d1406271')]>
Commit: <Commit _id='5358055aa02bb175d1406271:3589' tree_id='b6e27b8dab0667175549a2679501e0063394ab5d' committed=I{'date': datetime.datetime(2015, 6, 5, 13, 52, 7, 819000), 'email': '', 'name': 'dflaven'} authored=I{'date': datetime.datetime(2015, 6, 5, 13, 52, 7, 819000), 'email': '', 'name': 'dflaven'} message='Bug fix: do NOT display the call stack in case of error/exception since it may contain sensitive information.' parent_ids=I['5358055aa02bb175d1406271:3588'] child_ids=I['5358055aa02bb175d1406271:3590'] repo_ids=I[ObjectId('5358055aa02bb175d1406271')]>
Root cause:
The design of the portal relies on the use of 'Allow all data' flags on the queries, making it possible to view the services owned by a company which is not allowed for the current (portal) user.
But, the GUI uses the standard ajax service 'ajax.render.php?operation=wizard_helper' which does attempt a GetObject on each external key so as to update the corresponding external fields.
The fix consists in letting the wizard helper be in a degraded mode (external fields not always set) when the current user cannot fetch the objects corresponding to the external keys. I could not see the real consequences of that.
Committed in trunk as [r3686]
Requires further testing (with customized portals) before an eventual retrofit to older versions of iTop.
Related
Commit: <Commit _id='5358055aa02bb175d1406271:3686' tree_id='62d7d42ba5b14c4c11f3206983429d00047cefb1' committed=I{'date': datetime.datetime(2015, 8, 19, 9, 59, 15, 149000), 'email': '', 'name': 'romainq'} authored=I{'date': datetime.datetime(2015, 8, 19, 9, 59, 15, 149000), 'email': '', 'name': 'romainq'} message='#1074 Portal: errors when selecting Impact/Urgency, and if the user has access to his organization only.' parent_ids=I['5358055aa02bb175d1406271:3685'] child_ids=I['5358055aa02bb175d1406271:3687'] repo_ids=I[ObjectId('5358055aa02bb175d1406271')]>