• Error envio notificaciones en actualizacion a la 6.3

  • OpenKM tiene muchas características interesantes, pero es necesario un proceso de configuración para mostrar todo su potencial.
OpenKM tiene muchas características interesantes, pero es necesario un proceso de configuración para mostrar todo su potencial.
Forum rules: Por favor, antes de preguntar algo consulta el wiki de documentación o utiliza la función de búsqueda del foro. Recuerda que no tenemos una bola de cristal ni poderes mentales, o sea que que para informar sobre un error es necesario que nos indiques tanto la versión de OpenKM que usas como la del navegador y sistema operativo. Para más información consulta Cómo informar de fallos de forma efectiva.
 #30168  by maraf1
 
Buenas.

Actualicé de la versión 6.2.5 a la 6.3.0 y en principio sin problema. He probado bastantes cosas y todo OK.
el problema viene a la hora de enviar notificaciones. Me salta el siguiente error.
Es por la actualización porque pongo el BAckup que tenía de la versión 6.2.5 y segue enviándolos perfectamente.
Adjunto error.
Gracias
Code: Select all
------=_Part_0_18527776.1412767272419--
.
250 2.6.0 <7304890.2.1412767272528.JavaMail.adminsitu@srv-gest2> [InternalId=35517] Queued mail for delivery
QUIT
221 2.0.0 Service closing transmission channel
2014-10-08 13:21:44,349 [http-bio-0.0.0.0-8080-exec-8] ERROR freemarker.runtime - Expression documentName is undefined o
n line 1, column 27 in NotificationMessageSubject.

Expression documentName is undefined on line 1, column 27 in NotificationMessageSubject.
The problematic instruction:
----------
==> ${documentName} [on line 1, column 25 in NotificationMessageSubject]
----------

Java backtrace for programmers:
----------
freemarker.core.InvalidReferenceException: Expression documentName is undefined on line 1, column 27 in NotificationMess
ageSubject.
        at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
        at freemarker.core.Expression.getStringValue(Expression.java:118)
        at freemarker.core.Expression.getStringValue(Expression.java:93)
        at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
        at freemarker.core.Environment.visit(Environment.java:210)
        at freemarker.core.MixedContent.accept(MixedContent.java:92)
        at freemarker.core.Environment.visit(Environment.java:210)
        at freemarker.core.Environment.process(Environment.java:190)
        at freemarker.template.Template.process(Template.java:237)
        at com.openkm.module.common.CommonNotificationModule.sendNotification(CommonNotificationModule.java:110)
        at com.openkm.module.db.DbNotificationModule.notify(DbNotificationModule.java:204)
        at com.openkm.module.db.DbNotificationModule.notify(DbNotificationModule.java:152)
        at com.openkm.api.OKMNotification.notify(OKMNotification.java:88)
        at com.openkm.servlet.frontend.FileUploadServlet.doPost(FileUploadServlet.java:357)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at com.openkm.servlet.frontend.UploadThrottleFilter.doFilter(UploadThrottleFilter.java:52)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:311)
        at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.
java:116)
        at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityIntercepto
r.java:83)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
        at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:1
13)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
        at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:101)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
        at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticatio
nFilter.java:113)
        at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:323)
        at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextH
 #30174  by maraf1
 
Incluso he mofdificado estos parámetros:
y los he puesto com OpenKM 6.2 Community (porque algunos aparecían con el texto de la PRO)
He probado con la versión de Julio, la del 28 de agosto con las 2 pasa igual

OpenKM 6.2 Professional
Code: Select all
notification.message.subject 
OpenKM - NOTIFICATION  

notification.message.body 
<b>Message: </b>${notificationMessage}<br/> <b>User: </b>${userId}<br/> <#list documentList as doc> <b>Document: </b><a href="${doc.url}">${doc.path}</a><br/> </#list>  

subscription.message.subject 
OpenKM - ${eventType} - ${documentPath}  

subscription.message.body 
<b>Document: </b><a href="${documentUrl}">${documentPath}</a><br/> <b>User: </b>${userId}<br/><b>Event: </b>${eventType}<br/> <b>Comment: </b>${subscriptionComment}<br/>  

subscription.twitter.status 
OpenKM - ${documentUrl} - ${documentPath} - ${userId} - ${eventType}  

OpenKM 6.2 Community 


notification.message.subject 
OpenKM - NOTIFICATION - ${documentName}  

notification.message.body 
<b>Document: </b><a href="${documentUrl}">${documentPath}</a><br/><b>User: </b>${userId}<br/><b>Message: </b>${notificationMessage}<br/>  

subscription.message.subject 
OpenKM - ${eventType} - ${documentPath}  

subscription.message.body 
<b>Document: </b><a href="${documentUrl}">${documentPath}</a><br/><b>User: </b>${userId}<br/><b>Event: </b>${eventType}<br/><b>Comment: </b>${subscriptionComment}<br/>  

subscription.twitter.status 
OpenKM - ${documentUrl} - ${documentPath} - ${userId} - ${eventType}
 #30180  by jllort
 
El valor de notification.message.subject tiene que ser:
Code: Select all
OpenKM - NOTIFICATION
El valor de notification.message.body tiene que ser:
Code: Select all
<b>Message: </b>${notificationMessage}<br/>
<b>User: </b>${userId}<br/>
<#list documentList as doc><b>Document: </b><a href=\"${doc.url}\">${doc.path}</a><br/></#list>
Si al eliminar el notification.message.body desde la administración de parámetros no te lo crea con este valor dínoslo, porque ahí tendremos algún problema.
 #30212  by maraf1
 
Haciendolo tal como me has comentado ha funcionado OK.

No tengo ni idea de que ha pasado...... pero ahora reestablece el valor tal y como comentas.....

He reinstalado una copia que tenía de la 6.2.5 he hecho la actualización de nuevo y he eliminado las constantes de la configuración (en este caso las 2) y todo OK.

Gracias y lo siento.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.