[JBoss JIRA] Created: (JBPORTAL-1742) ACLEnforcer - folder.getFolders() give results for Anonymus user only if child folders have write or manage permssion for anonymous (read is not enough)
by Mariusz Smykula (JIRA)
ACLEnforcer - folder.getFolders() give results for Anonymus user only if child folders have write or manage permssion for anonymous (read is not enough)
--------------------------------------------------------------------------------------------------------------------------------------------------------
Key: JBPORTAL-1742
URL: http://jira.jboss.com/jira/browse/JBPORTAL-1742
Project: JBoss Portal
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Components: Portal CMS
Affects Versions: 2.6.2 Final
Environment: JBoss 4.2.1
Reporter: Mariusz Smykula
Assigned To: Sohil Shah
I want to execute simple code from my portlet:
Command listCMD = cmsService.getCommandFactory().createFolderGetListCommand("/");
mainFolder = (Folder) cmsService.execute(listCMD);
LOG.info(mainFolder .getFolders().size());
This is ALWAYS empty folders list, if executed as Anonymous user. For real result I need to set role write or manage for Anonymus user to all subfolders. This is correct?
This happens because in ACLEnforce there is checked for write or mange permssion, but read is enough!
for(Iterator itr=specificPermissions.iterator();itr.hasNext();)
{
Permission specificPermission = (Permission)itr.next();
if( (specificPermission.getService().equals("cms")) &&
(specificPermission.getAction().equals("write") || specificPermission.getAction().equals("manage"))
)
{
for(Iterator itr2=userPermissions.iterator();itr2.hasNext();)
{
Permission userPermission = (Permission)itr2.next();
if( (userPermission.getService().equals("cms")) &&
(userPermission.getAction().equals("write") || userPermission.getAction().equals("manage"))
)
{
String pathCriteria = userPermission.findCriteriaValue("path");
if(pathCriteria.equals(path))
{
//this means this user has read access to this path
toolAccess = true;
}
}
}
}
}
This is correct?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 1 month
[JBoss JIRA] Created: (JBPORTAL-1727) CLONE -CMS saves pages in native encoding (ISO-8859-1 or Cp1251) but retrieve it in UTF-8. then national leters are damaged
by Mariusz Smykula (JIRA)
CLONE -CMS saves pages in native encoding (ISO-8859-1 or Cp1251) but retrieve it in UTF-8. then national leters are damaged
---------------------------------------------------------------------------------------------------------------------------
Key: JBPORTAL-1727
URL: http://jira.jboss.com/jira/browse/JBPORTAL-1727
Project: JBoss Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Portal CMS
Environment: jboss4.0.3sp1
Reporter: Mariusz Smykula
Assigned To: Sohil Shah
Fix For: 2.6 CR3
When I input ru-characters in the text area it has been puted into table in native encoding (cp1251) - !!! not UTF-8. But pages are sends in UTF-8, and it damaged.
I think that I have to encode the request in UTF-8 ???
---------------------------------------------
create file.html in Ru (in cms admin) with this text
abc???
then look at the last record of JBP_CMS_VERSION_BINVAL
(six bytes in BINVAL_DATA field):
61 62 63 e0 e1 e2
it is cp1251 encoding !!!!
why this text non unicoded ???
then when i retrive it i have - 'abc???'
I think that problem isn't in ContentTypeInterceptor because it succefully
sets UTF8, because localized resources seems right (in russian).
may be it is need to store text in CLobs insdead blobs ??? (a use Derby) or customize Jackrabbit ???
-----------------------------------------------------------
but when I upload file on UTF-8 with russian characters - all correct.
I think that cms saves the content in one byte encoding (cp1250 or same).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 1 month
[JBoss JIRA] Created: (JBAS-4986) subproject fails to build from source (jgroups related)
by Torsten Werner (JIRA)
subproject fails to build from source (jgroups related)
-------------------------------------------------------
Key: JBAS-4986
URL: http://jira.jboss.com/jira/browse/JBAS-4986
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Clustering
Affects Versions: JBossAS-4.2.2.GA
Reporter: Torsten Werner
Assigned To: Brian Stansberry
When I try to build the subproject from source, I get the following error message. The class org.jgroups.debug.Debugger is not available in jgroups 2.5 or 2.6.
1. ERROR in /home/twerner/debian/build-area/jbossas4-4.2.2.GA/cluster/src/main/./org/jboss/ha/framework/server/ClusterPartition.java (at line 49)
import org.jgroups.debug.Debugger;
^^^^^^^^^^^^^^^^^^^^^^^^^^
The import org.jgroups.debug.Debugger cannot be resolved
----------
2. ERROR in /home/twerner/debian/build-area/jbossas4-4.2.2.GA/cluster/src/main/./org/jboss/ha/framework/server/ClusterPartition.java (at line 100)
protected Debugger debugger=null;
^^^^^^^^
Debugger cannot be resolved to a type
----------
3. ERROR in /home/twerner/debian/build-area/jbossas4-4.2.2.GA/cluster/src/main/./org/jboss/ha/framework/server/ClusterPartition.java (at line 344)
if(use_debugger && debugger == null)
^^^^^^^^
debugger cannot be resolved
----------
4. ERROR in /home/twerner/debian/build-area/jbossas4-4.2.2.GA/cluster/src/main/./org/jboss/ha/framework/server/ClusterPartition.java (at line 346)
debugger=new Debugger(channel);
^^^^^^^^
debugger cannot be resolved
----------
5. ERROR in /home/twerner/debian/build-area/jbossas4-4.2.2.GA/cluster/src/main/./org/jboss/ha/framework/server/ClusterPartition.java (at line 346)
debugger=new Debugger(channel);
^^^^^^^^
Debugger cannot be resolved to a type
Cheers,
Torsten
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 1 month
[JBoss JIRA] Created: (JBPORTAL-1740) cms admin portlet checks for hardcoded role named 'admin'
by Tobias Roth (JIRA)
cms admin portlet checks for hardcoded role named 'admin'
---------------------------------------------------------
Key: JBPORTAL-1740
URL: http://jira.jboss.com/jira/browse/JBPORTAL-1740
Project: JBoss Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Portal CMS
Affects Versions: 2.6.2 Final
Reporter: Tobias Roth
Assigned To: Sohil Shah
See also http://jira.jboss.com/jira/browse/JBPORTAL-1646
I found another hardcoded use of 'admin'. The effect of having this is that even with the change I described above, permissions of cms nodes cannot be changed by users that are not in role called 'admin'.
Why does the security console need to have separate access rights? Aren't the access rights for the CMS admin console enough?
In core-cms/src/main/org/jboss/portal/core/cms/ui/admin/CMSAdminPortlet.java:
private boolean isSecurityConsoleAccessible(PortletRequest portletRequest)
{
try
{
boolean isAccessible = false;
if (portletRequest.getUserPrincipal() != null)
{
User user = this.userModule.findUserByUserName(portletRequest.getUserPrincipal().getName());
Set roles = this.membershipModule.getRoles(user);
if (roles != null)
{
for (Iterator itr = roles.iterator(); itr.hasNext();)
{
Role role = (Role)itr.next();
if (role.getName().equalsIgnoreCase("admin"))
{
isAccessible = true;
break;
}
}
}
}
return isAccessible;
}
catch (Exception e)
{
return false;
}
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 1 month
[JBoss JIRA] Created: (JBPORTAL-1646) portal-cms depends on existence of user 'admin'
by Tobias Roth (JIRA)
portal-cms depends on existence of user 'admin'
-----------------------------------------------
Key: JBPORTAL-1646
URL: http://jira.jboss.com/jira/browse/JBPORTAL-1646
Project: JBoss Portal
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Portal CMS
Affects Versions: 2.6.1 Final
Reporter: Tobias Roth
Assigned To: Sohil Shah
cms/src/main/org/jboss/portal/cms/impl/jcr/JCRCMS.java has the user 'admin' hardcoded:
/** Loads content from sar and adds it to the repo. */
public void createContent() throws Exception
{
log.info("Creating default CMS content.");
// Get the content
URL root = Thread.currentThread().getContextClassLoader().getResource(defaultContentLocation);
//make the user executing these to create the default content, an 'Admin' user
//without this, the fine grained security won't allow the creation
UserModule userModule = getUserModule();
if(userModule != null)
{
org.hibernate.Session session = org.jboss.portal.cms.hibernate.state.Tools.getOpenSession();
org.hibernate.Transaction tx = session.beginTransaction();
User user = userModule.findUserByUserName("admin"); // HERE
if(user!=null)
{
JCRCMS.getUserInfo().set(user);
}
tx.rollback();
org.jboss.portal.cms.hibernate.state.Tools.closeSession(session);
}
If it doesn't exist (for example because LDAP is being used), portal-cms cannopt be deployed, and several database tables are not created. If 'admin' is changed to an existing user, everything works fine.
There is another reference to 'admin' in cms/src/main/org/jboss/portal/cms/impl/jcr/command/ACLEnforcer.java, but leaving this as it is doesn't seem to have any negative effect.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 1 month