cancel
Showing results for 
Search instead for 
Did you mean: 

Problem editing link properties

itayh
Champ in-the-making
Champ in-the-making
Hi,

I add a content rule that when adding link to space in a specific space than several properties are added (when *.url item is added than add aspect to the item).
When I am trying to edit the new space (the link) properties I can see only the original properties (name,Description..) and not the new properties that I added with the rule.
Also when saving the changes I did on the original properties I get the next exception:
ava.lang.NullPointerException
   at org.alfresco.web.bean.LinkPropertiesBean.save(LinkPropertiesBean.java:209)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:129)
   at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
   at javax.faces.component.UICommand.broadcast(UICommand.java:106)
   at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)
   at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:164)
   at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:316)
   at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:105)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:81)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
   at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
   at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
   at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
   at java.lang.Thread.run(Thread.java:595)

Any one have any idea?
5 REPLIES 5

itayh
Champ in-the-making
Champ in-the-making
Hi,

I have another question regarding links.
I create several links to one space.
Can I see from the original space list of all the links that were done for this space?

Thx in advance,

Itay

itayh
Champ in-the-making
Champ in-the-making
anyone? is it a known problem with links?

kevinr
Star Contributor
Star Contributor
I add a content rule that when adding link to space in a specific space than several properties are added (when *.url item is added than add aspect to the item).
When I am trying to edit the new space (the link) properties I can see only the original properties (name,Description..) and not the new properties that I added with the rule.
Also when saving the changes I did on the original properties I get the next exception:
java.lang.NullPointerException

Link .url objects are not the same type as normal content objects (they are not cm:content type) - the properties are not using the same data model. They are displayed and dealt with as a special case in the web-client. See cm:link object in the contentModel.xml definition.

I create several links to one space.
Can I see from the original space list of all the links that were done for this space?
Not out-of-the-box. You could write a lucene query for this and then create a custom view template that exposed the query results.

Thanks,

Kevin

itayh
Champ in-the-making
Champ in-the-making
Thank you kevin for the reply,

I need to have several extra properties for my links. I notice that when I add them to the XML i can see them but I can not edit them. I also notice the filelink-details.jsp ans spacelink-details.jsp. Will I need to change those jsp in order to edit my new link properties?

Thx alot,
Itay

itayh
Champ in-the-making
Champ in-the-making
any one?  :idea: