Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Fix Version/s: 7.2.x
    • Component/s: Documentation
    • Labels:
      None
    • Type of Documentation:
      User

      Description

      Problem: Run `ant check-links-dxp` from `liferay-docs/user` and good links are reported as bad:

      Buildfile: /home/russell/git/liferay-docs-worktrees/liferay-docs/user/build.xml
      check-links-dxp:
       [checklinks] 1. *INVALID URL*
       [checklinks] File: ../user/articles-dxp/140-workflow/08-using-kaleo-forms.markdown:10
       [checklinks] Line: [Workflow Designer app](/docs/7-2/user/-/knowledge_base/u/workflow-designer) 
       [checklinks]
      BUILD FAILED
       /home/russell/git/liferay-docs-worktrees/liferay-docs/build-common.xml:568:
      *Total Broken Links: 1*
      Total time: 0 seconds
      

       

      Use this branch to limit the number of bad links and articles that need to be looped through
      https://github.com/rbohl/liferay-docs/tree/build-7.2-links-dxp/

      Debugging Notes:

      The execute method calls the `addDXPOnlyArticles` method and correctly
      populates `currentArticles` with both the `articles` and `articles-dxp` articles

      Processing returns to the `execute` method after `addDxpOnlyArticles` is called, and then calls `assignedReferenceDirArticles`: processing returns to `addDxpOnlyArticles` and this time the path is inexplicably set to `developer/appdev`

      Debugging in `assignedReferenceDirArticles` shows that this check
      returns false because `articleDir` is holding the value `developer/appdev`:

      
      for (String articleDir : articleDirs) {
      
      			if (articleDir.equals(userGuideDir)) {
      				userGuideArticles = findArticles(userGuideDir);
      			}
      
      
      

       

      Expected: `articleDirs` holds `user`, and the check for `assignReferencedDirs` returns `true` when checking whether it's equal to `userGuideDir`.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Packages

                Version Package
                7.2.x