bugphpGroupWare - Bugs: bug #4377, When caching phpgwinfo, prefs get...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #4377: When caching phpgwinfo, prefs get lost

Submitted by:  Alejandro Borges (lex) <alexbsa>
Submitted on:  Sun 20 Jul 2003 02:13:50 AM UTC  
 
Item Group:  0.9.16 pre RC Category:  API - Preferences
Severity:  3 - Normal Priority:  5 - Normal
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
Component Version:  None Operating System:  None
Reproducibility:  None Planned Release:  None
Fixed Release: 

Sun 20 Jul 2003 02:13:50 AM UTC, original submission:

As it says. Cache phpgwinfo, php sessions, non-persistant db connection.

Go try and set preferences in any app (even settings). You wont be able to.

Im in the process of debugging it, but it seems this has to do with the way the prefs class handles the cached phpgwinfo array in line 547 (or arround, look at

if (($type == 'user' || !$type) && $GLOBALS['phpgw_info']['server']['cache_phpgw_info'] && $this->account_id == $GLOBALS['phpgw_info']['user']['account_id'])

)

I think the read repository function borks the new preference data.
Iva managed to pin it down this way:

1.- Set new preferences to any app, make it break with an echo something

2.- Check out the database, preferences are fine there

3.- Go to home.php or even preferences index

4.- Check the db again, preferences are gone.

So, gimme a hand pls. Im trying to port AM to 0.16 preferences and cant go in if i dont fix this. Im gonna try and do it myself though.

Alejandro Borges (lex) <alexbsa>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by skwashd (Updated the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-03-06 skwashd Assigned toskwashd => None
    2004-04-21 cboettger Assigned toNone => skwashd
    2004-01-20 powerstat Assigned toInvalid User ID => None

    Back to the top


    Powered by Savane 3.3