Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-20323

RM 2.7.1 breaks share config views of custom model types/properties in Share UI

    Details

      Description

      Description

      Deployment of RM 2.7.1 breaks the document details version properties 'view' of custom model properties. Meaning, the custom properties are no longer rendered in additional version's properties popup as expected. The share configurations seem to have been overridden or broken and evaluators fail.

      This is not reproducible in installs without RM 2.7.1 deployed.

      Steps to Reproduce

      Note: This is irrelevant of whether or not you use the SDK or a normally installed/deployed ACS with model deployed via <extensions>. SDK is used for replication convenience.

      1. Create a new ACS 5.2.4 AIO (all-in-one) SDK 3.0.1 project
        note: there is a default acme type (acme:document) with properties sample in project for testing this issue
      2. Edit the pom.xml to add RM to the platformModules and shareModules 
      3. Start the server using ./run.sh 
      4. Log in to Share 
      5. Create a folder 
      6. Add a rule to the folder that 'on create' specializes the files of type cm:content to acme:document
      7. Add a document to the folder. 
      8. Edit the the document properties to set the ACME document ID and security classification properties. 
      9. View document details and see the documentID and security classification are displayed correctly in view.
      10. Under version history click the properties history icon to show the properties history dialog. You can see that the document ID and security classification are displayed correctly here as well. 
      11. Upload a new version of the document. 
      12. Under version history, click the properties icon to show the properties dialog. Use the arrow to move between versions. You'll see that the form is not displaying the properties as defined in the form configuration.

      13. In the alfresco log and you'll see an exception that the AspectEvaluator cannot "find aspects in JSON response from metadata service". 
      2019-01-08 16:33:48,048  WARN  [config.forms.AspectEvaluator] [http-bio-8080-exec-28] Failed to find aspects in JSON response from metadata service.
      org.json.JSONException: JSONObject["aspects"] not found.
      	at org.json.JSONObject.get(JSONObject.java:498)
      	at org.alfresco.web.config.forms.AspectEvaluator.checkJsonAgainstCondition(AspectEvaluator.java:66)
      	at org.alfresco.web.config.forms.NodeMetadataBasedEvaluator.applies(NodeMetadataBasedEvaluator.java:77)
      	at org.springframework.extensions.config.DefaultLookupAlgorithm.process(DefaultLookupAlgorithm.java:43)
      	at org.springframework.extensions.config.BaseConfigService.processSection(BaseConfigService.java:493)
      	at org.springframework.extensions.config.BaseConfigService.getConfig(BaseConfigService.java:228)
      	at org.springframework.extensions.webscripts.ExtendedTemplateConfigModel$ExtendedScopedConfigMap.get(ExtendedTemplateConfigModel.java:121)
      	at org.alfresco.web.scripts.forms.FormUIGet.getFormConfig(FormUIGet.java:354)
      	at org.alfresco.web.scripts.forms.FormUIGet.generateModel(FormUIGet.java:274)
      	at org.alfresco.web.scripts.forms.FormUIGet.executeImpl(FormUIGet.java:236)
      	at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:64)
      	at org.springframework.extensions.webscripts.PresentationContainer.executeScript(PresentationContainer.java:70)
      	at org.springframework.extensions.webscripts.LocalWebScriptRuntimeContainer.executeScript(LocalWebScriptRuntimeContainer.java:240)
      	at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:399)
      	at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:210)
      	at org.springframework.extensions.webscripts.servlet.mvc.WebScriptView.renderMergedOutputModel(WebScriptView.java:104)
      	at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:264)
      	at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1216)
      	at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1001)
      	at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:945)
      	at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:867)
      	at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:951)
      	at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:842)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
      	at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:827)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:749)
      	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:487)
      	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:412)
      	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:339)
      	at org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java:213)
      	at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:171)
      	at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
      	at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
      	at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:389)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      	at org.springframework.extensions.webscripts.servlet.SecurityHeadersFilter.doFilter(SecurityHeadersFilter.java:177)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      	at org.springframework.extensions.webscripts.servlet.CSRFFilter.doFilter(CSRFFilter.java:322)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      	at org.alfresco.web.site.servlet.SSOAuthenticationFilter.doFilter(SSOAuthenticationFilter.java:474)
      	at org.alfresco.web.site.servlet.SSOAuthenticationFilter.doFilter(SSOAuthenticationFilter.java:443)
      	at org.springframework.extensions.webscripts.servlet.BeanProxyFilter.doFilter(BeanProxyFilter.java:80)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
      	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
      	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
      	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)
      	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)
      	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      

       

        Attachments

          Structure

            Activity

              People

              • Assignee:
                dsamarzija Dario Samarzija
                Reporter:
                spatel Satyan Patel [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Structure Helper Panel