DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=31595>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=31595 portal-save-profile action is broken Summary: portal-save-profile action is broken Product: Cocoon 2 Version: 2.0 Platform: Sun OS/Version: Linux Status: NEW Severity: Normal Priority: Other Component: blocks AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] This action in the sitemap of the portal block is commented. If you remove comments, the portal saves user profile at logout stage. But generated files are unusable because we have an error from the CastorSourceConverter on the JSR-168 coplet. But is not the main problem. If you remove this kind of coplet, the action still failed when you try to save coplet with an attribute. Here is the exception and sniplet : org.apache.cocoon.components.persistence.ConverterException: unable to find FieldDescriptor for 'name' in ClassDescriptor of attributed-map-item at org.apache.cocoon.components.persistence.CastorSourceConverter.getObject (CastorSourceConverter.java:82) at org.apache.cocoon.portal.profile.impl.MapProfileLS.loadProfile (MapProfileLS.java:139) at org.apache.cocoon.portal.profile.impl.AuthenticationProfileManager.loadProfile (AuthenticationProfileManager.java:377) at org.apache.cocoon.portal.profile.impl.AuthenticationProfileManager.getOrCreateP rofile(AuthenticationProfileManager.java:251) at org.apache.cocoon.portal.profile.impl.AuthenticationProfileManager.loadProfile (AuthenticationProfileManager.java:131) at org.apache.cocoon.portal.profile.impl.AbstractUserProfileManager.getPortalLayou t(AbstractUserProfileManager.java:337) at org.apache.cocoon.portal.profile.impl.AbstractUserProfileManager.login (AbstractUserProfileManager.java:56) at org.apache.cocoon.portal.acting.LoginAction.act(LoginAction.java:60) It's look like fail when coplet have attribute (in this case DBID). Here is a sniplet of the profile saved <?xml version="1.0" encoding="UTF-8" ?> - <coplets> - <coplet-instance-data id="CMSShowDoc-1" name="standard"> <coplet-data>CMSShowDoc</coplet-data> - <attribute> <name>DBID</name> - <value xsi:type="map-item" xmlns:xsi="http://www.w3.org/2001/XMLSchema- instance"> <name>DBID</name> <value xsi:type="java:java.lang.String">Undefined</value> </value> </attribute> - <attribute> <name>DocType</name> - <value xsi:type="map-item" xmlns:xsi="http://www.w3.org/2001/XMLSchema- instance"> <name>DocType</name> <value xsi:type="java:java.lang.String">Undefined</value> </value> </attribute> </coplet-instance-data> Laurent Trillaud
