? ? Success

User tests: Successful: Unsuccessful:

avatar FPerisa
FPerisa
9 Oct 2015

A Solution for issue #5148

The issue:
When an url of an unknown tag is requested, joomla handles this like an existing tag with the message "No matching items were found.". A 404 error should be thrown instead.

My solution:
When the tag ID (out of the given url) is searched in the database, I check the primary key of the "found" object. When there is no one, I throw the 404 error, with a "Tag not found." message.

Testing instructions:

  • Enter an url with a tag that does not exist in your joomla.
  • Important is the ID and not the name behind the minus.
  • For example: localhost/example-page/index.php/all-tags/99-foo

Expected result:
A 404 error appears instead of a "No matching items were found." message.

Worked as a group on that issue: @icampus @flow87 @kathastaden @xsability

avatar FPerisa FPerisa - open - 9 Oct 2015
avatar FPerisa FPerisa - change - 9 Oct 2015
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 9 Oct 2015
Labels Added: ? ?
avatar brianteeman
brianteeman - comment - 9 Oct 2015

Language strings are normally ordered alphabetically so please can you update the proposed change in the language file

avatar FPerisa
FPerisa - comment - 9 Oct 2015

Thank you for your comment!
I will check my git problems (with the unnecessary commit) and sort the language file.

avatar snarf007 snarf007 - test_item - 10 Oct 2015 - Tested successfully
avatar snarf007
snarf007 - comment - 10 Oct 2015

I have tested this item :white_check_mark: successfully on ec507fc

Before istalling the patch recieved the following message: No matching items were found.
After installing the patch: No matching items were found. (404 Tag not found. )

Result as expected


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

avatar dam-man dam-man - test_item - 10 Oct 2015 - Tested successfully
avatar dam-man
dam-man - comment - 10 Oct 2015

I have tested this item :white_check_mark: successfully on ec507fc

404 is better to show indeed - Patch is working as expected and throwing a 404 now instead of a message.


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

avatar zero-24
zero-24 - comment - 10 Oct 2015

RTC is on hold until @FPerisa gets time to fix the language string ordering ;) Thanks.

avatar zero-24 zero-24 - change - 10 Oct 2015
Milestone Added:
avatar roland-d
roland-d - comment - 22 Oct 2015

@FPerisa Can you please fix the language ordering so we can merge this fix? Thank you.


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

avatar frascan
frascan - comment - 24 Oct 2015

I have tested this item successfully; with result as expected.
Test took place in the context of Pizza & Fun Bug JUG Rome.


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

avatar ZioPal
ZioPal - comment - 24 Oct 2015

I successfully tested, I think is a sensible change. The test took place in the Pizza and Fun JUG Rome.


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

avatar dgt41
dgt41 - comment - 24 Oct 2015

@FPerisa can you please merge FPerisa#1 to move this to RTC?

avatar dgt41 dgt41 - change - 27 Oct 2015
Status Pending Ready to Commit
avatar dgt41
dgt41 - comment - 27 Oct 2015

RTC since the language strings are now alpha ordered


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

avatar joomla-cms-bot joomla-cms-bot - change - 27 Oct 2015
Labels Added: ?
avatar zero-24 zero-24 - change - 28 Oct 2015
Milestone
avatar zero-24 zero-24 - change - 28 Oct 2015
Milestone Added:
avatar zero-24 zero-24 - change - 28 Oct 2015
Milestone Added:
avatar zero-24 zero-24 - change - 28 Oct 2015
Milestone
avatar roland-d roland-d - change - 2 Nov 2015
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2015-11-02 20:14:39
Closed_By roland-d
avatar wilsonge wilsonge - change - 17 Jan 2016
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment