Uploaded image for project: 'Share Application'
  1. Share Application
  2. SHA-1931

Aikau bootstrapping in Surf not working on some Android devices

    Details

    • Type: Bug
    • Status: Done
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Share Application
    • Labels:
    • Bug Priority:
      Category 1

      Description

      It would appear that there is a problem with some (but not all) Android devices / browsers in bootstrapping Aikau pages. This was originally reported via Twitter (see https://twitter.com/deas/status/796822298644905984) and then reported as an Aikau issue (see https://github.com/Alfresco/Aikau/issues/1289)

      Having looked into the problem I can see that the problem is in the dojo-bootstrap.get.html.ftl and dojo-bootstrap.get.json.ftl files where the code is written to assume that if the navigators.languages attribute is set then it must have an entry, i.e:

      var dojoConfig = {
               baseUrl: "${url.context}${webframeworkConfig.dojoBaseUrl}",
               tlmSiblingOfDojo: false,
               locale: (navigator.languages ? navigator.languages[0] : (navigator.language || navigator.userLanguage)).toLowerCase(),
               async: true,
               parseOnLoad: false,
               packages: [
               <#assign packages = webframeworkConfig.dojoPackages>
               <#list packages?keys as name>
                  { name: "${name}", location: "${packages[name]}"<#if webframeworkConfig.dojoPackagesMain[name]??>, main: "${webframeworkConfig.dojoPackagesMain[name]}"</#if>}<#if name_has_next>,</#if>
               </#list>
               ]
            };
      

      We need to improve the defensive coding here. I have added a request on the Aikau issue for more specific information on which Android based browsers this problem occurs on in order to assist with testing and verification of the fix.

        Attachments

          Structure

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                deas0815 Andreas Steffan (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Structure Helper Panel