Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-11832

URLs in tests aren't shortened, triggering errors in Composer files

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 3.1.0-a1
    • 3.1.0-dev
    • Test Suite
    • None

      Function request() in phpbb_functional_test_case.php merges root url with path but does not remove single and double dots from path. As a result when both root_url and path are set it results in URLs like this:

      http://localhost/phpBB/./index.php

      Symphony's HTTP client requests it like that without removing ./ from URLs and in result $_SERVER variable is different, confusing Request class... or something like that. I'm not sure which one of those components is causing error.

      Solution is to fix URLs before requesting it in test suite, avoiding that bug.

            EXreaction EXreaction [X] (Inactive)
            Arty Vjacheslav Trushkin [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: