Kayako logo
Modifications & Addon Releases Modification guides and addons are posted here to share with the community. Do not post requests in here!

Notices

Reply
 
LinkBack Thread Tools Search this Thread Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  (#31) Old
Vincent Offline
New Member
 
Posts: 8
Join Date: Jan 2008
12-02-2008, 07:32 AM

Hi,

Already done that... several times...

And good morning to you

Greetzzz Vincent
   
Reply With Quote
  (#32) Old
Sheep Offline
Member
 
Sheep's Avatar
 
Posts: 350
Join Date: Feb 2007
Location: Lyon, France
12-02-2008, 07:46 AM

That's pretty strange... look for any php errors in your php.log
(wow... woke up for a boring course at uni... good morning! )


Antoine "Sheep" BERMON
-- Lurking around there --

Last edited by Sheep; 12-02-2008 at 07:49 AM.
   
Reply With Quote
  (#33) Old
Matthew Offline
Member
 
Matthew's Avatar
 
Posts: 195
Join Date: Oct 2007
Location: Jakarta, Indonesia
12-02-2008, 12:56 PM

There are two things about SERM that seem in need of fixing.
  1. If the client interface user is not associated with a Rights Group which has resource folders assigned to it, the user will receive a blank page when clicking on Troubleshooters, Knowledgebase, or Downloads.
  2. When a user has access to a resource folder, but not its sub-folders (which in this example contains items), the accessible folder will still display the total number of items in itself AND all its subfolder(s).
I imagine the first bug is relatively easy to fix, with second one involving a lot more work.

Sheep, would you have a quick fix for the first issue?


Matthew Arciniega
+ Free: Ticket List & Search Mods
| Dept. Display Names
+ Free: (Almost) Perfect Outlook/HTML Tickets
+ Tutorials: SLA System Explained
| Using Template Groups
Kayako v3.20.02 | PHP: 5.2.6 | MySQL: 5.0.58 | CentOS 4
   
Reply With Quote
  (#34) Old
Sheep Offline
Member
 
Sheep's Avatar
 
Posts: 350
Join Date: Feb 2007
Location: Lyon, France
12-02-2008, 03:28 PM

The first point is not exactly a bug:

I'm using a TRIGGER_ERROR to stop the process
PHP Code:
trigger_error($fatalmessageE_USER_ERROR); 
PHP: trigger_error - Manual
PHP: Errors and Logging - Manual
Most webhosters set (in php.ini) the error_level to NULL wich means that the script will stop but won't display the error message to the front user.
So in fact, it's not a white page : it's a page where you -should- see "you're not allowed to see this ressource". SERM is configured to "deny all acess by default".

The improvment should be: "add an error handler" to supportsuite
PHP: set_error_handler - Manual
Customising the PHP error handler
This should be done in index.php after the swift include.

This is a followup to a previous "feature request":
http://forums.kayako.com/f63/system-...handler-12684/
As you can see in my previous quote i'm using the error_level "E_USER_ERROR" that could be catched in the error handler and displayed nicely using the default template (the error_handler ignores the error_level) as it's not a security flaw to display those errors (but php fatals shouldn't be displayed).

(You can do it by yourself it's not hard)



For the second point, i agree that it should be "fixed" (i'd say improved)
BUT
there is something that was not written in this topic (it's been said in other ones): i've left the kayako community (i was a trainee at the time i wrote this module). I've never used this module for myself and i don't even use supportsuite now (i don't need it, i'm a student ). I don't want to improve the module because i don't know how much time it will take me. That's why this module is given to the community: i hope that someone will continue it. I'm first when it comes to say "this module" isn't -complete-.

I'm a bit sorry to say that i -won't do it- (it's all about motivations)

I've subscribed to the topics i've created because i dislike to leave something not working (so i'm helping a bit people that need helps), but i've told myself to limit my implication.

Sorry again.
Antoine


Antoine "Sheep" BERMON
-- Lurking around there --
   
Reply With Quote
  (#35) Old
Matthew Offline
Member
 
Matthew's Avatar
 
Posts: 195
Join Date: Oct 2007
Location: Jakarta, Indonesia
12-02-2008, 05:21 PM

Quote:
Originally Posted by Sheep View Post
(You can do it by yourself it's not hard)
Umm... Ok. You mean, no free lunch?

Quote:
Originally Posted by Sheep View Post
For the second point, i agree that it should be "fixed" (i'd say improved)
BUT
there is something that was not written in this topic (it's been said in other ones): i've left the kayako community
Yeah, we know that. And a damn shame it is, too, looking at some of the gems you provided!

So go on then... go away. Leave us to mope about, trying to dissect Kayako and make everything work as we'd really like it, while you attend to your studies, drink beer, and ogle campus beauties. We'll be fine here, really we will...


Matthew Arciniega
+ Free: Ticket List & Search Mods
| Dept. Display Names
+ Free: (Almost) Perfect Outlook/HTML Tickets
+ Tutorials: SLA System Explained
| Using Template Groups
Kayako v3.20.02 | PHP: 5.2.6 | MySQL: 5.0.58 | CentOS 4
   
Reply With Quote
  (#36) Old
Sheep Offline
Member
 
Sheep's Avatar
 
Posts: 350
Join Date: Feb 2007
Location: Lyon, France
13-02-2008, 12:04 AM

Damn you, i'm feeling guilty now (don't worry, i understand your matter )

Now that i think about it, i'll agree with the fact that the first part can be -very quickly- done...
I might get some free time around the 22/23 feb.
I'll see if i can do anything then (it's not a promise, i'm moving from my study town to my training course town in april... quite a quest).


Antoine "Sheep" BERMON
-- Lurking around there --
   
Reply With Quote
  (#37) Old
Vincent Offline
New Member
 
Posts: 8
Join Date: Jan 2008
13-02-2008, 07:36 AM

Hope that you have some time then... Anyway thanks for the assistance so far..
   
Reply With Quote
  (#38) Old
Matthew Offline
Member
 
Matthew's Avatar
 
Posts: 195
Join Date: Oct 2007
Location: Jakarta, Indonesia
30-03-2008, 12:39 PM

Quote:
Originally Posted by Vincent View Post
Hope that you have some time then... Anyway thanks for the assistance so far..
I guess we're out of luck. This is one sheep that's off to greener pastures.... <sigh>


Matthew Arciniega
+ Free: Ticket List & Search Mods
| Dept. Display Names
+ Free: (Almost) Perfect Outlook/HTML Tickets
+ Tutorials: SLA System Explained
| Using Template Groups
Kayako v3.20.02 | PHP: 5.2.6 | MySQL: 5.0.58 | CentOS 4
   
Reply With Quote
  (#39) Old
Sheep Offline
Member
 
Sheep's Avatar
 
Posts: 350
Join Date: Feb 2007
Location: Lyon, France
03-04-2008, 12:00 PM

Sincerely sorry matthew, i got overloaded with my ending semester and i couldn't get time for myself. I'm moving to Lyon (my new town) tomorrow (and i'll discover my first job monday at sopragroup). I should get back Internet in arround 2/3weeks (i hope) and then i'll have plenty of free time (no more school work!). I'll fix the matter at that time (this is a promise).


Antoine "Sheep" BERMON
-- Lurking around there --

Last edited by Sheep; 03-04-2008 at 12:04 PM.
   
Reply With Quote
  (#40) Old
Matthew Offline
Member
 
Matthew's Avatar
 
Posts: 195
Join Date: Oct 2007
Location: Jakarta, Indonesia
SERM and IRS Search-in-KB-Titles mod - 06-04-2008, 09:05 AM

Quote:
Originally Posted by Sheep View Post
Sincerely sorry matthew, i got overloaded with my ending semester and i couldn't get time for myself. I'm moving to Lyon (my new town) tomorrow (and i'll discover my first job monday at sopragroup). I should get back Internet in arround 2/3weeks (i hope) and then i'll have plenty of free time (no more school work!). I'll fix the matter at that time (this is a promise).
Thanks Antoine. Good luck with the new job and the city.

You know, it seems to me that the first issue that I previously mentioned has been fixed in recent CVS builds:

Quote:
There are two things about SERM that seem in need of fixing.
  1. If the client interface user is not associated with a Rights Group which has resource folders assigned to it, the user will receive a blank page when clicking on Troubleshooters, Knowledgebase, or Downloads.
  2. When a user has access to a resource folder, but not its sub-folders (which in this example contains items), the accessible folder will still display the total number of items in itself AND all its subfolder(s).
Can any other SERM users confirm this?

But wouldn't you know it... there's another little bit that might need twiddling--or maybe just a note here.

I'm using both SERM and the IRS search-in-KB-title mod. But the IRS search was not working; it simply would refuse to return any hits. I've traced the problem to this modification, where you say:

Quote:
If you're using SERM replace (around line 65 of modules/knowledgebase/functions_irs.php):

$dbCore->query("SELECT kbarticlelinks.kbarticleid, MATCH(kbarticledata.contents) AGAINST ('". $dbCore->escape($_finalworddata) ."') AS relevance FROM `". TABLE_PREFIX ."kbarticledata` AS kbarticledata LEFT JOIN `". TABLE_PREFIX ."kbarticlelinks` AS kbarticlelinks ON (kbarticledata.kbarticleid = kbarticlelinks.kbarticleid) LEFT JOIN `". TABLE_PREFIX ."tgroupassigns` AS tgroupassigns ON (kbarticlelinks.kbcategoryid = tgroupassigns.toassignid AND tgroupassigns.type = '". TGROUP_KNOWLEDGEBASE ."') WHERE ". sermFilterAsQuery('kbcategoryid',$_SWIFT["user"]["usergroupid"],'kb')." AND tgroupassigns.tgroupid = '". intval($_SWIFT["tgroup"]["tgroupid"]) ."' AND MATCH(kbarticledata.contents) AGAINST('". $dbCore->escape($_finalworddata) ."') LIMIT 5;");

with:

$dbCore->query("SELECT kbarticlelinks.kbarticleid, MATCH(kbarticledata.contents) AGAINST ('". $dbCore->escape($_finalworddata) ."') AS relevance, MATCH(kbarticles.subject) AGAINST ('". $dbCore->escape($_finalworddata) ."') AS relevancetitle FROM `". TABLE_PREFIX ."kbarticledata` AS kbarticledata LEFT JOIN `". TABLE_PREFIX ."kbarticlelinks` AS kbarticlelinks ON (kbarticledata.kbarticleid = kbarticlelinks.kbarticleid) LEFT JOIN `". TABLE_PREFIX ."tgroupassigns` AS tgroupassigns ON (kbarticlelinks.kbcategoryid = tgroupassigns.toassignid AND tgroupassigns.type = '". TGROUP_KNOWLEDGEBASE ."') LEFT JOIN `". TABLE_PREFIX ."kbarticles` AS kbarticles ON kbarticledata.kbarticleid=kbarticles.kbarticleid WHERE ". sermFilterAsQuery('kbcategoryid',$_SWIFT["user"]["usergroupid"],'kb')." AND tgroupassigns.tgroupid = '". intval($_SWIFT["tgroup"]["tgroupid"]) ."' AND (MATCH(kbarticledata.contents) AGAINST('". $dbCore->escape($_finalworddata) ."') OR MATCH (kbarticles.subject) AGAINST ('". $dbCore->escape($_finalworddata) ."')) LIMIT 5 ");
THAT little bit, or rather something in the sermFilterAsQuery() in functions_serm.php, is breaking things. If I return that line to the original, however, things seem to work. I can search KB titles and I don't seem to be getting hits on articles that beyond the current user's SERM rights.


Matthew Arciniega
+ Free: Ticket List & Search Mods
| Dept. Display Names
+ Free: (Almost) Perfect Outlook/HTML Tickets
+ Tutorials: SLA System Explained
| Using Template Groups
Kayako v3.20.02 | PHP: 5.2.6 | MySQL: 5.0.58 | CentOS 4
   
Reply With Quote
  (#41) Old
Sheep Offline
Member
 
Sheep's Avatar
 
Posts: 350
Join Date: Feb 2007
Location: Lyon, France
23-04-2008, 10:55 PM

Hi there,

Internet is finally working in my new flat

Quote:
You know, it seems to me that the first issue that I previously mentioned has been fixed in recent CVS builds:
Ah? Did they insert an error_handler? That would save me from doing it
** Sheep - completly out of what supporsuite has become**

If it's not the case, i'll do it tomorrow or friday.

Quote:
There are two things about SERM that seem in need of fixing.
  1. If the client interface user is noB20associated wiúp a"RiF¾ts Group which has resource folders `ssigned to it, the user will receive a blank page when clicking on Troubleshooters, Knowledgebase, or Downloads.
  2. When a user has access to a resource folder, but not its sub-folders (which in this example contains items), the accessible folder will still display the total number of items in itself AND all its subfolder(s).
I've already answered the 2 points

1) It's half a bug. SERM is denying all acess by default. It's not showing a blank page: it's triggering an error but your php.ini is set so it doesn't display this error (so we need an error handler! That's what i promised i'd do).

2) I'd say yes, i don't remember changing this part... but i'll put it in the "improvment request" folder (and then you sadly know what my answer is)...

Quote:
sermFilterAsQuery() in functions_serm.php, is breaking things.
Hmm? I can't tell like that...
Can you tell me what php error does it makes? (php logs?)


Antoine "Sheep" BERMON
-- Lurking around there --

Last edited by Sheep; 23-04-2008 at 11:13 PM.
   
Reply With Quote
  (#42) Old
Sheep Offline
Member
 
Sheep's Avatar
 
Posts: 350
Join Date: Feb 2007
Location: Lyon, France
Question 26-04-2008, 10:17 PM

Hi Matthew, sorry for the little delay.

Can you try this error handler? (add it in index.php just after
PHP Code:
require_once ("./swift.php"); 
This is complete blind coding: i can't test it myself (no licence).
You should contact me on msn (GMT+1).

PHP Code:
function customErrorHandler($errno$errstr$errfile$errline)
{
    global 
$template;
    
    switch (
$errno) {
    case 
E_USER_ERROR:
    
        
$template->assign("errormessage"$errstr);
        echo 
$template->displayTemplate("header");
        echo 
$template->displayTemplate("footer");
        exit(
1);
        break;
    case 
E_USER_WARNING:
        
//echo "<b>WARNING</b> [$errno] $errstr<br />\n";
        
break;
    case 
E_USER_NOTICE:
        
//echo "<b>NOTICE</b> [$errno] $errstr<br />\n";
        
break;
    default:
        
//echo "Unknown error type : [$errno] $errstr<br />\n";
        
break;
    }
   return 
false//let the normal debugger continue (not in the E_USER_ERROR case)
}
set_error_handler("customErrorHandler"); 


Antoine "Sheep" BERMON
-- Lurking around there --
   
Reply With Quote
  (#43) Old
Armen Offline
New Member
 
Posts: 3
Join Date: Jun 2008
19-06-2008, 02:20 PM

Hi there!
I understand that most likely I'm "too late" in this discussion and SERM is the passed day for our respected Sheep, who enjoys now of his new job and beauties in Lyon :-), but maybe I'll be lucky and somebody is still interesting in this topic... So, the problem is that neither
http://myownaddress.something/support/setup/
nor
http://mysite.domain/support/setup/
cannot be found in WEB :-(
After I made all the changes in sources accordingly to setup.php, I reached the point where I need to go to any of above sites and here oops... they do not exist anymore :-(
Does anybody know what can I do now? Maybe another address is active..?
   
Reply With Quote
  (#44) Old
Sheep Offline
Member
 
Sheep's Avatar
 
Posts: 350
Join Date: Feb 2007
Location: Lyon, France
19-06-2008, 10:18 PM

Quote:
but maybe I'll be lucky and somebody is still interesting in this topic
I'm still getting notification emails


To solve your matter, if the setup folder doesn't exist anymore just reupload the one that is inside the Supportsuite package.

BTW: http://myownaddress.something/support/setup/ is just a sample adress, yours could be http://insertyourdomainname.net/setup/ (no "support" subfolder)


Antoine "Sheep" BERMON
-- Lurking around there --
   
Reply With Quote
  (#45) Old
Armen Offline
New Member
 
Posts: 3
Join Date: Jun 2008
20-06-2008, 01:03 PM

Thanks Antoine, I got it. And it is installed now. Though now I have another problem. Following First time guide, I did all the steps:

- Go the staff panel
- Go to the “rights” tab > Manage rights
- Create a subgroup (from the root) called guest
- Create a subgroup (from guest) called registered
- Go to Manage Usergroups
- Click on Guest
- Click on the RightGroups tab
- Check the Guest mark

But I can't do the very last item - "Submit", since there is NO Submit button on the page. I'm digging in sources now, trying to find out why it is so.
I'm afraid SERM becomes incompatible with the newest versions of Support Suit (I'm using v.3.20.02)
   
Reply With Quote
Reply

Tags
enhanced, management, serm, supportsuite

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kayako SupportSuite < 3.30.00 Multiple Vulnerabilities nwilkens SupportSuite, eSupport and LiveResponse 1 11-08-2008 04:43 PM
Sessions management in SupportSuite danielmr44 Developers & Code 1 03-07-2008 07:01 PM
[WIP] new module: SERM (Supportsuite Enhanced Right Management) Sheep Developers & Code 22 03-08-2007 03:53 PM
SupportSuite Owned License Inquiries bmc2010 Presales Questions 3 27-08-2006 08:58 PM
Showcase: SoftAir & DemoWolf partner for complete SupportSuite customizations demowolf Marketplace 0 21-03-2006 02:09 PM



Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47