Hi,
Is there a quickfix for the issue with the notes tab in CMDBuild 2.4.2.
https://bitbucket.org/tecnoteca/cmdbuild/commits/b8d962055e5b2a64de3755e97a11aec24e206aaf
Can you recommended to change the function onCardSelected in CMCardGridController.js and the parameter on History.js?
regards Roger
You have to replace the attached JavaScript file in this path: [webapp] /javascripts/cmdbuild/controller/management/common/CMCardGridController.js
Then remember to clean your browser cache.
CMDBuild Team
cmcardgridcontroller-js (15.9 KB)
Previously Tecnoteca wrote:
You have to replace the attached JavaScript file in this path: [webapp] /javascripts/cmdbuild/controller/management/common/CMCardGridController.js
Then remember to clean your browser cache.
CMDBuild Team
I tried it but with the new CMCardGridController.js I have every time if I open a Card an NotFoundException.
I cleaned the brower cache and restarted the tomcat server.
Call: services/json/management/modcard/getcard
-----------------------------------------------
Error: org.cmdbuild.exception.NotFoundException: CARD_NOTFOUND Customer
at org.cmdbuild.exception.NotFoundException$NotFoundExceptionType.createException(NotFoundException.java:25)
at org.cmdbuild.logic.data.access.DefaultDataAccessLogic.fetchCMCard(DefaultDataAccessLogic.java:462)
at org.cmdbuild.logic.data.access.DefaultDataAccessLogic.fetchCMCard(DefaultDataAccessLogic.java:435)
at org.cmdbuild.logic.data.access.DefaultDataAccessLogic.fetchCard(DefaultDataAccessLogic.java:426)
at org.cmdbuild.servlets.json.management.ModCard.getCard(ModCard.java:487)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.cmdbuild.servlets.JSONDispatcher.dispatch(JSONDispatcher.java:104)
at org.cmdbuild.servlets.JSONDispatcher.doPost(JSONDispatcher.java:64)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.cmdbuild.filters.AuthFilter.doFilter(AuthFilter.java:188)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.cmdbuild.filters.PatchManagerFilter.doFilter(PatchManagerFilter.java:48)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.cmdbuild.filters.ConfCheckFilter.doFilter(ConfCheckFilter.java:31)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.cmdbuild.filters.TranslationFilter.doFilter(TranslationFilter.java:52)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.cmdbuild.filters.LocalizationFilter.doFilter(LocalizationFilter.java:127)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
We need some more details about this error. First of all we ask you to be sure to clear general browser cache on settings (not just local page cache with ctrl + R or ctrl + shift + R shortcuts). Then you should give us call parameters, you can find these informations from network tab browser console (usually push F12 button to open console) on related getcard call (see attachment).
CMDBuild Team
Previously Roger wrote:
Previously Tecnoteca wrote:
You have to replace the attached JavaScript file in this path: [webapp] /javascripts/cmdbuild/controller/management/common/CMCardGridController.js
Then remember to clean your browser cache.
CMDBuild Team
I tried it but with the new CMCardGridController.js I have every time if I open a Card an NotFoundException.
I cleaned the brower cache and restarted the tomcat server.
Call: services/json/management/modcard/getcard
-----------------------------------------------
Error: org.cmdbuild.exception.NotFoundException: CARD_NOTFOUND Customer
at org.cmdbuild.exception.NotFoundException$NotFoundExceptionType.createException(NotFoundException.java:25)
at org.cmdbuild.logic.data.access.DefaultDataAccessLogic.fetchCMCard(DefaultDataAccessLogic.java:462)
at org.cmdbuild.logic.data.access.DefaultDataAccessLogic.fetchCMCard(DefaultDataAccessLogic.java:435)
at org.cmdbuild.logic.data.access.DefaultDataAccessLogic.fetchCard(DefaultDataAccessLogic.java:426)
at org.cmdbuild.servlets.json.management.ModCard.getCard(ModCard.java:487)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.cmdbuild.servlets.JSONDispatcher.dispatch(JSONDispatcher.java:104)
at org.cmdbuild.servlets.JSONDispatcher.doPost(JSONDispatcher.java:64)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.cmdbuild.filters.AuthFilter.doFilter(AuthFilter.java:188)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.cmdbuild.filters.PatchManagerFilter.doFilter(PatchManagerFilter.java:48)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.cmdbuild.filters.ConfCheckFilter.doFilter(ConfCheckFilter.java:31)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.cmdbuild.filters.TranslationFilter.doFilter(TranslationFilter.java:52)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.cmdbuild.filters.LocalizationFilter.doFilter(LocalizationFilter.java:127)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:616)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:522)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1095)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1500)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1456)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:745)
console-form-data-jpg (92.4 KB)
The browser cache was sure cleared. I tried it also on a new installed computer which is first time connected on cmdbuild.
there are 3 getcard requests if I clicked on a card.
first request parameters: cardId:"" and className:"Customer"
second request parameters: cardID:"789" and className:"Customer"
third request parameters: cardID:"789" and className:"Customer"
https://s23.postimg.org/66ldmo07v/cmdbuild_notes_issue.png
The problem would be the first request with the empty cardId.
Previously Tecnoteca wrote:
We need some more details about this error. First of all we ask you to be sure to clear general browser cache on settings (not just local page cache with ctrl + R or ctrl + shift + R shortcuts). Then you should give us call parameters, you can find these informations from network tab browser console (usually push F12 button to open console) on related getcard call (see attachment).
CMDBuild Team
If I change in javascript/cmdbuild/controller/management/classes/tabs/History.js on line 307 from
params[CMDBuild.core.constants.Proxy.CARD_ID] = card.get(CMDBuild.core.constants.Proxy.ID);
to
params[CMDBuild.core.constants.Proxy.CARD_ID] = card.get('Id');
the exception will not be thrown.
Can you recocommend this change?
Previously Roger wrote:
The browser cache was sure cleared. I tried it also on a new installed computer which is first time connected on cmdbuild.
there are 3 getcard requests if I clicked on a card.
first request parameters: cardId:"" and className:"Customer"
second request parameters: cardID:"789" and className:"Customer"
third request parameters: cardID:"789" and className:"Customer"
https://s23.postimg.org/66ldmo07v/cmdbuild_notes_issue.png
The problem would be the first request with the empty cardId.
Previously Tecnoteca wrote:
We need some more details about this error. First of all we ask you to be sure to clear general browser cache on settings (not just local page cache with ctrl + R or ctrl + shift + R shortcuts). Then you should give us call parameters, you can find these informations from network tab browser console (usually push F12 button to open console) on related getcard call (see attachment).
CMDBuild Team
We had a misunderstanding. Our response, with related override, was intended to be applied over commit linked in first post to have also History.js correction.
CMDBuild Team
Previously Roger wrote:
If I change in javascript/cmdbuild/controller/management/classes/tabs/History.js on line 307 from
params[CMDBuild.core.constants.Proxy.CARD_ID] = card.get(CMDBuild.core.constants.Proxy.ID);
to
params[CMDBuild.core.constants.Proxy.CARD_ID] = card.get('Id');
the exception will not be thrown.
Can you recocommend this change?
Previously Roger wrote:
The browser cache was sure cleared. I tried it also on a new installed computer which is first time connected on cmdbuild.
there are 3 getcard requests if I clicked on a card.
first request parameters: cardId:"" and className:"Customer"
second request parameters: cardID:"789" and className:"Customer"
third request parameters: cardID:"789" and className:"Customer"
https://s23.postimg.org/66ldmo07v/cmdbuild_notes_issue.png
The problem would be the first request with the empty cardId.
Previously Tecnoteca wrote:
We need some more details about this error. First of all we ask you to be sure to clear general browser cache on settings (not just local page cache with ctrl + R or ctrl + shift + R shortcuts). Then you should give us call parameters, you can find these informations from network tab browser console (usually push F12 button to open console) on related getcard call (see attachment).
CMDBuild Team
Thanks for the good support, it all works perfectly.
Regards Roger
Previously Tecnoteca wrote:
We had a misunderstanding. Our response, with related override, was intended to be applied over commit linked in first post to have also History.js correction.
CMDBuild Team
Previously Roger wrote:
Thanks for the good support, it all works perfectly.
Regards Roger
Previously Tecnoteca wrote:
We had a misunderstanding. Our response, with related override, was intended to be applied over commit linked in first post to have also History.js correction.
CMDBuild Team
I have replaced the file /javascripts/cmdbuild/controller/management/common/CMCardGridController.js with the file that is available in this thread, but I have still the exception "CARD Not Found" as soon as the new card is created. I have cleaned the firefox cache by the setting menu and by the Cmdbuild cache management page. Can you help me, please? Do I have to change other js files?
Thanks in advance