? ? Pending

User tests: Successful: Unsuccessful:

avatar berserkerx
berserkerx
7 Sep 2017

Summary of Changes

Namespace prefix is now searched as "XXX\" instead of "XXX" in qualified class name. Previously, if prefix 'A' was registered, all namespaces, beginning with 'A' were tested, like "Apple\", "AI\", etc.

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
5.00

avatar joomla-cms-bot joomla-cms-bot - change - 7 Sep 2017
Category Libraries
avatar berserkerx berserkerx - open - 7 Sep 2017
avatar berserkerx berserkerx - change - 7 Sep 2017
Status New Pending
avatar franz-wohlkoenig franz-wohlkoenig - change - 8 Sep 2017
Easy No Yes
avatar franz-wohlkoenig franz-wohlkoenig - change - 8 Sep 2017
Easy Yes No
avatar berserkerx berserkerx - change - 8 Sep 2017
The description was changed
avatar berserkerx berserkerx - edited - 8 Sep 2017
avatar berserkerx berserkerx - change - 11 Sep 2017
Labels Added: ?
avatar laoneo laoneo - test_item - 12 Sep 2017 - Tested successfully
avatar laoneo
laoneo - comment - 12 Sep 2017

I have tested this item successfully on 4f44aa4


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17896.

avatar berserkerx berserkerx - test_item - 14 Sep 2017 - Tested successfully
avatar berserkerx
berserkerx - comment - 14 Sep 2017

I have tested this item successfully on 4f44aa4

Tested on Win64, PHP 7.1.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17896.

avatar franz-wohlkoenig franz-wohlkoenig - change - 14 Sep 2017
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 14 Sep 2017

RTC after two successful tests.

avatar Quy
Quy - comment - 14 Sep 2017

@franz-wohlkoenig This can't be RTC because the second tester is the author of this PR.

avatar franz-wohlkoenig franz-wohlkoenig - change - 14 Sep 2017
Status Ready to Commit Pending
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 14 Sep 2017

set Status back on Pending. Thanks for Hint @Quy


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17896.

avatar laoneo
laoneo - comment - 20 Sep 2017

Are the exception handler changes related to this pr? Please open a new pr with these changes. Thanks for understanding.

avatar berserkerx
berserkerx - comment - 20 Sep 2017

Sorry )) Ok, I will open new PR for refactored ExceptionHandler.

avatar berserkerx
berserkerx - comment - 20 Sep 2017

Done.

avatar ethernidee
ethernidee - comment - 25 Sep 2017

Could anyone else test the patch, so that it could be included in the next release?

avatar franz-wohlkoenig franz-wohlkoenig - alter_testresult - 26 Oct 2017 - berserkerx: Tested unsuccessfully
avatar franz-wohlkoenig franz-wohlkoenig - alter_testresult - 26 Oct 2017 - berserkerx: Not tested
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 26 Oct 2017

@ethernidee if you test we have the secod needed Test.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17896.

avatar laoneo
laoneo - comment - 26 Oct 2017

@franz-wohlkoenig ethernidee created the patch, so he can't test it.

avatar laoneo
laoneo - comment - 26 Oct 2017

@ethernidee would be good if you can add a unit test for your changes, just to be sure we didn't break something. If you need help on that, let me know.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 26 Oct 2017

@laoneo thanks, haven't looked for that.

avatar ethernidee
ethernidee - comment - 26 Oct 2017

Used the patch successfully on working site.
Guys, the change is really primitive: http://www.php-fig.org/psr/psr-4/examples/

// project-specific namespace prefix
$prefix = 'Foo\\Bar\\';

In PSR-4 loader implementation example namespaces are registered with trailing backslash and thus are searched with backslash. So I added leading/trailing backslashes trimming to registerNamespace and append backspace to prefixes on search by force. That's all ) If you think, that this tiny change needs it's own unit test, ok.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17896.

avatar laoneo
laoneo - comment - 26 Oct 2017

Changes on the classloader can have big side effects. Personally I prefere to stay on the safe side.

avatar joomla-cms-bot joomla-cms-bot - change - 28 Oct 2017
Category Libraries Libraries Unit Tests
avatar ethernidee ethernidee - change - 28 Oct 2017
Labels Added: ?
avatar ethernidee
ethernidee - comment - 28 Oct 2017

@laoneo, added tests for namespace trimming and loading by PSR-4.

avatar laoneo laoneo - test_item - 30 Oct 2017 - Tested successfully
avatar laoneo
laoneo - comment - 30 Oct 2017

I have tested this item successfully on 7d89004


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17896.

avatar ethernidee
ethernidee - comment - 30 Oct 2017

Applied this loader.php on 4 real working sites. No troubles for a few weeks already. Automatical tests were also added. Can I mark the human test as successful or should we wait for another volunteer?

avatar mbabker mbabker - change - 25 Nov 2017
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-11-25 17:08:35
Closed_By mbabker
avatar mbabker mbabker - close - 25 Nov 2017
avatar mbabker mbabker - merge - 25 Nov 2017

Add a Comment

Login with GitHub to post a comment