Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-79615

Fix #applyDecorator("form-aui") not working with Velcoity Directives in Struts

      Pages including applyDecorator based AUI forms are found to be broken at the moment during Velocity rendering.

      For eg:

      • Login was not working most problem because seraph filter is not able to find the os_username with Confluence.  > 5] [atlassian.seraph.auth.DefaultAuthenticator] getUser getUser : User not found in either Session, Cookie or Basic Auth.
        2022-07-25 22:44:13,373 DEBUG [http-nio-8080-exec-5] [atlassian.seraph.filter.SecurityFilter] doFilter doFilter : Setting Auth Context to be 'anonymous ' 
        We have put a workaround temporarily for login.
      • Edit page is not working in Collab mode

          Form Name

            [CONFSERVER-79615] Fix #applyDecorator("form-aui") not working with Velcoity Directives in Struts

            A fix for this issue is available in Confluence Server and Data Center 8.0.0.
            Upgrade now or check out the Release Notes to see what other issues are resolved.

            James Whitehead added a comment - A fix for this issue is available in Confluence Server and Data Center 8.0.0. Upgrade now or check out the Release Notes to see what other issues are resolved.

            Fixed by migrating from #tag or #bodytag elements in a VM file to #s based Struts tag. Ex:

            #bodytag( "Component" "label='create.support.zip.include.tomcat'" "name='includeServerLogs'" "value=includeServerLogs" "theme='aui'" "template='onofflist.vm'")}}
                #param ("description" "$i18n.getText('create.support.zip.include.tomcat.desc')")
            #end

            converts to

            #scomponent("label='create.support.zip.include.tomcat'" "name='includeServerLogs'" "value=includeServerLogs" "theme='aui'" "template='onofflist.vm'"
                "description=$i18n.getText('create.support.zip.include.tomcat.desc')")
            #end

            And 

            #bodytag( "TextField" "label='create.support.zip.logs.other.directory'" "name='serverLogsDirectory'" "value=serverLogsDirectory" "theme='aui'")
                #param ("description" "$i18n.getText('create.support.zip.logs.other.directory.desc')")
            #end

            converts to

            #stextfield("label='create.support.zip.logs.other.directory'" "name='serverLogsDirectory'" "value=serverLogsDirectory" "theme='aui'"
            "description=$i18n.getText('create.support.zip.logs.other.directory.desc')")

            Ganesh Gautam added a comment - Fixed by migrating from #tag or #bodytag elements in a VM file to #s based Struts tag. Ex: #bodytag( "Component" "label='create.support.zip.include.tomcat'" "name='includeServerLogs'" "value=includeServerLogs" "theme='aui'" "template='onofflist.vm'")}}     #param ("description" "$i18n.getText('create.support.zip.include.tomcat.desc')") #end converts to #scomponent("label='create.support.zip.include.tomcat'" "name='includeServerLogs'" "value=includeServerLogs" "theme='aui'" "template='onofflist.vm'"     "description=$i18n.getText('create.support.zip.include.tomcat.desc')") #end And  #bodytag( "TextField" "label='create.support.zip.logs.other.directory'" "name='serverLogsDirectory'" "value=serverLogsDirectory" "theme='aui'")     #param ("description" "$i18n.getText('create.support.zip.logs.other.directory.desc')") #end converts to #stextfield("label='create.support.zip.logs.other.directory'" "name='serverLogsDirectory'" "value=serverLogsDirectory" "theme='aui'" "description=$i18n.getText('create.support.zip.logs.other.directory.desc')")

              8d92d18aad77 Bhanu Darisi (Inactive)
              ggautam Ganesh Gautam
              Affected customers:
              0 This affects my team
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: