Thanks,
I did get the problem fixed. It was due to the fck_config.js file
bringing in the CSS file from the default publication and the user not
having permissions on that publication. I submitted a patch, which
someone did apply to svn for me.
Thanks again,
Richard
Yehya Mohamad wrote:
Hi Richard,
I had a similar problem with FCKE in lenya 1.2.4. After the first
invocation of FCKeditor the user was logged out when hitting save or
cancel.
We have solved the problem by changing the JavaScript file
"../lenya/lenya/usecases/fckeditor/resources/invokeEditor.js" as
follows:
var url = document.URL;
var urlArray = url.split("/");
var docpath = '';
var isDocId = 'false';
for(var i=0; i < urlArray.length; i++){
if(isDocId == 'true'){
docpath = docpath + urlArray[i];
if(i < urlArray.length-1){
docpath = docpath + "/";
}
}
if(urlArray[i] == 'authoring'){
docpath = value + "/";
isDocId = 'true'
}
var value = urlArray[i];
}
var period = docpath.indexOf(".");
var docpath = docpath.substring(0,period);
document.cookie = "url=" + docpath + "; path=/";
var pubid = GetLenyaPubId(docpath);
Changed to:-
var pubid = urlArray[2];
This puts the domain e.g. foo.com as pubid
You could as well hard wire the oublication id by putting
var pubid ="foo.com"
I do not know if this exactly applies to lenya 1.4, but may be this
could help to solve your problem.
Regards
Yehya
Richard Frovarp wrote:
Richard Frovarp wrote:
Richard Frovarp wrote:
I'm having an issue with 1.4, in that the login will not stick when
using FCKeditor. I start up Lenya, it runs and everything is good.
I go to edit a page with FCKeditor, I change the content. I hit
save and I am given a login prompt. After several login/save
attempts, it will usually take. From looking at the logs, I can see
that the machine is recognized, but no user name is associated with
it. My JSESSIONID cookie does not change from initial login, to
failed save login, to successful save.
When I am presented with the login, I see this in the logs:
PARAM: 'org.apache.lenya.ac.Identity' VALUE: '[identity:
[EMAIL PROTECTED] 134.129.71.65]'
When it works I see:
PARAM: 'org.apache.lenya.ac.Identity' VALUE: '[identity: lenya
[EMAIL PROTECTED] reviewer 134.129.71.65 admin
editor visitor]'
Anyone else seeing anything like this? Any idea where to begin
looking for the problem?
Richard
I've done some more testing. The session comes back with no roles
assigned. However, it would not appear that the roles are being
removed. The roles are just disappearing.
I am getting this on the login page when I try to save:
Access Denied
The user 'ref' is not authorized to access the page
'/elegantdemo/authoring/index.html'.
If you have another user account with the corresponding privileges,
please provide user name and password below.
But that user has all roles, and it authorized me to edit the page.
Debugging statements show that no roles are associated with the
user, where the call to get in there showed the user had all roles.
Furthermore, I am having some weird issues with errors about a file
being checked out. Sure, the file it is complaining about being
checked out is, but it isn't the file I am working on. If I get the
error when saving, the content is saved to the right location, it
would appear. There is something funky happening with the sessions
that needs to be cleared up. How could my session be getting
dropped? This is obviously a huge issue that needs to be fixed. I am
guessing it will be difficult to reproduce. It would be nice to
figure out what part of the code has the potential of screwing up my
sessions, so I can do some more logical investigations.
Richard
I've found the problem, sort of. The belongsTo function in Identity
is returning false. I have yet to figure out why this is happening,
but I have traced my problem to there. Its returning false is causing
a new Identity object to be created, which is of course wiping out
the roles associated with the user. I will do my best to try to
figure out what is going on in this code, but perhaps someone more
familiar with it can spot a problem quicker than I.
Richard
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]