
|
If you were logged in you would be able to see more operations.
|
|
|
|
We were getting erratic permissions issues after migrating a site from FarCry 4.0.10 or 5.0.0
It seems that the permissions system is case sensitive. Strangely enough all the templates seem to start with lowercase "display", however TitleCase "Display" is being passed to the "checkWebskin" method. I'm sure this is something to do with the migration we did and not with FarCry 5.0 itself, however I see that it would be likely for a similar issue to crop up for other users in the future.
After about 1 hour of shuffling through code, I found that a regular expression was case sensitive.
/farcry/core/packages/types/farRole.cfc line 248:
{code}
<cfif (not find(".",filter) or listfirst(filter,".") eq "*" or listfirst(filter,".") eq arguments.type) and refind(replace(listlast(filter,"."),"*",".*","ALL"),arguments.webskin)>
{code}
Replace with
{code}
<cfif (not find(".",filter) or listfirst(filter,".") eq "*" or listfirst(filter,".") eq arguments.type) and reFindNoCase(replace(listlast(filter,"."),"*",".*","ALL"),arguments.webskin)>
{code}
|
|
Description
|
We were getting erratic permissions issues after migrating a site from FarCry 4.0.10 or 5.0.0
It seems that the permissions system is case sensitive. Strangely enough all the templates seem to start with lowercase "display", however TitleCase "Display" is being passed to the "checkWebskin" method. I'm sure this is something to do with the migration we did and not with FarCry 5.0 itself, however I see that it would be likely for a similar issue to crop up for other users in the future.
After about 1 hour of shuffling through code, I found that a regular expression was case sensitive.
/farcry/core/packages/types/farRole.cfc line 248:
{code}
<cfif (not find(".",filter) or listfirst(filter,".") eq "*" or listfirst(filter,".") eq arguments.type) and refind(replace(listlast(filter,"."),"*",".*","ALL"),arguments.webskin)>
{code}
Replace with
{code}
<cfif (not find(".",filter) or listfirst(filter,".") eq "*" or listfirst(filter,".") eq arguments.type) and reFindNoCase(replace(listlast(filter,"."),"*",".*","ALL"),arguments.webskin)>
{code}
|
Show » |
|