Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-21981

Checking URLs cronjob incoherent on some relative app links

    Details

    • Type: Bug Bug
    • Status: Confirmed
    • Priority: High High
    • Resolution: Unresolved
    • Affects Version/s: 5.3-dev
    • Fix Version/s: QA tracked issues
    • Component/s: Cronjobs, Legacy stack
    • Labels:
    • Environment:

      Server OS: CentOS 6.4
      PHP: 5.3.3
      Database: MySQL 5.1.69
      Browser: Firefox 22.0
      Interface: [Demo]

      Description

      Check URLs cronjob wont validate the app relative paths

      /var/www/html/ezpublish52 » console ezpublish:legacy:script runcronjobs.php link                                                                 vagrant@cen
      Running script 'runcronjobs.php' in eZ Publish legacy context
      #!/usr/bin/env php
      Using siteaccess  for cronjob
      Running cronjob part 'link'
      Running cronjobs/linkcheck.php at: 20/11/2013 12:28 pm
      Checking link ...
       
      check-/footer valid
      check-/content/view/full/60 invalid
       
      All links have been checked!
      Completing cronjobs/linkcheck.php at: 20/11/2013 12:28 pm
      Elapsed time: 00:00:05
      

      Steps

      1. make installation with ezdemo
      2. on admin2 create an article with summary:

        <link href="/footer">footer link through name</link>
        <link href="/content/view/full/60">footer link through id</link>
        

      3. run check link cronjob
        1. $ php ezpublish/console ezpublish:legacy:script runcronjobs.php infrequent
        2. $ php ezpublish/console ezpublish:legacy:script runcronjobs.php infrequent --siteaccess eng
      4. verify that for both executions you get following results
        1. the /footer link is valid
        2. the /content/view/full/60 link is invalid

        Activity

        Marcos Loureiro (Inactive) created issue -
        Marcos Loureiro (Inactive) made changes -
        Field Original Value New Value
        Status Open [ 1 ] Confirmed [ 10037 ]
        Marcos Loureiro (Inactive) made changes -
        Description Check URLs cronjob wont validate the app relative paths

        {noformat}
        /var/www/html/ezpublish52 » console ezpublish:legacy:script runcronjobs.php link vagrant@cen
        Running script 'runcronjobs.php' in eZ Publish legacy context
        #!/usr/bin/env php
        Using siteaccess for cronjob
        Running cronjob part 'link'
        Running cronjobs/linkcheck.php at: 20/11/2013 12:28 pm
        Checking link ...

        check-/footer valid
        check-/content/view/full/60 invalid

        All links have been checked!
        Completing cronjobs/linkcheck.php at: 20/11/2013 12:28 pm
        Elapsed time: 00:00:05
        {noformat}

        *Steps*
        # make installation with ezdemo
        # on admin2 create an article with summary:
        {noformat}
        <link href="/footer">footer link through name</link>
        <link href="/content/view/full/60">footer link through id</link>
        {noformat}
        # run check link cronjob
        ## {{$ php ezpublish/console ezpublish:legacy:script runcronjobs.php infrequent }}
        ## {{$ php ezpublish/console ezpublish:legacy:script runcronjobs.php infrequent --siteaccess eng}}
        # verify that for both executions you get following results
        ## the {{/footer}} link is valid
        ## the {{/content/view/full/60}} link is invalid

        Check URLs cronjob wont validate the app relative paths

        {noformat}
        /var/www/html/ezpublish52 » console ezpublish:legacy:script runcronjobs.php link vagrant@cen
        Running script 'runcronjobs.php' in eZ Publish legacy context
        #!/usr/bin/env php
        Using siteaccess for cronjob
        Running cronjob part 'link'
        Running cronjobs/linkcheck.php at: 20/11/2013 12:28 pm
        Checking link ...

        check-/footer valid
        check-/content/view/full/60 invalid

        All links have been checked!
        Completing cronjobs/linkcheck.php at: 20/11/2013 12:28 pm
        Elapsed time: 00:00:05
        {noformat}

        *Steps*
        # make installation with ezdemo
        # on admin2 create an article with summary:
        {noformat}
        <link href="/footer">footer link through name</link>
        <link href="/content/view/full/60">footer link through id</link>
        {noformat}
        # run check link cronjob
        ## {{$ php ezpublish/console ezpublish:legacy:script runcronjobs.php infrequent}}
        ## {{$ php ezpublish/console ezpublish:legacy:script runcronjobs.php infrequent --siteaccess eng}}
        # verify that for both executions you get following results
        ## the {{/footer}} link is valid
        ## the {{/content/view/full/60}} link is invalid

        André Rømcke made changes -
        Workflow eZ Engineering Scrumban Workflow [ 60147 ] EZ* Development Workflow [ 70015 ]
        Bertrand Dunogier made changes -
        Component/s Legacy stack [ 13341 ]
        Alex Schuster made changes -
        Workflow EZ* Development Workflow [ 70015 ] EZEE Development Workflow [ 108396 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Marcos Loureiro (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: