View Issue Details

IDProjectCategoryView StatusLast Update
0009282mantisbtfilterspublic2023-10-13 12:56
Reporterdyawlak Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionno change required 
PlatformHP Blade serverOSWindowsOS Version2003
Product Version1.1.1 
Summary0009282: URL Short cut not working as supposed to
Description

I have an application that emails out a list of assigned work per user. There is a hyperlink link against the user name that opens Mantis and shows the calls for that user:

http://server/view_all_set.php?type=1&temporary=y&handler_id=12&hide_status=80&project_id=0

This works fine if Mantis is not loaded already as it shows all open calls across all projects. if Mantis is already loaded, it only shows the current project calls.

TagsNo tags attached.

Activities

dyawlak

dyawlak

2008-06-19 05:23

reporter   ~0018138

Upgraded to 1.1.2 - fault persists.

vboctor

vboctor

2008-06-30 11:21

manager   ~0018239

I suspect that the filtering code is confusing project=0 (ALL_PROJECTS) with META_FILTER_ANY (i.e. no filter on project field).

As a work around, I will generate a URL that looks as follows:
http://server/set_project.php?project_id=0&ref=<url encoded filter url>

This will set the current project to all projects, then apply the filter. You can then remove project_id=0 from the filter URL.

dyawlak

dyawlak

2008-06-30 11:34

reporter   ~0018243

thanks vboctor

dyawlak

dyawlak

2008-09-24 07:05

reporter   ~0019436

hi - wondered if there'd been any movement with this

Thanks

dyawlak

dyawlak

2008-10-13 10:15

reporter   ~0019541

vboctor - is there any news on this?

dyawlak

dyawlak

2009-01-16 11:02

reporter   ~0020642

vboctor

Ok - blonde moment over. I see you were giving me the answer. I think I going wrong somewhere tho. My line now reads
http://mantis/set_project.php?project_id=0&amp;ref=http://mantis/view_all_set.php?type=1&amp;temporary=y&amp;handler_id=48&amp;hide_status=80

jreese

jreese

2009-01-16 13:14

reporter   ~0020644

Last edited: 2009-01-16 13:15

dyawlak, you'll need to urlencode() the url, specifically to turn "&" to "&" - as you have it, the first page only sees the ref=http://mantis/view_all_set.php?type=1 as a single parameter.

dyawlak

dyawlak

2009-01-19 06:19

reporter   ~0020654

Unfortuneately, I'm not using PHP to create the email.
I have written a function equiv to URLEncode and it gives me the following:

http://mantis/set_project.php?project_id=0&ref=http%3a%2f%2fmantis%2eview%5fall%5fset%2ephp%26type%3d1%26temporary

but it loads My View instead - so I guess I'm encoding from the wrong place.

dyawlak

dyawlak

2009-04-22 04:19

reporter   ~0021614

Don't suppose someone could confirm what the URL shoul look like for me - sorry to be a pain

dregad

dregad

2013-11-18 04:54

developer   ~0038577

I know 4+ years later you probably don't care anymore, but here it goes

In the URL you posted in 0009282:0020654 you have a '/' incorrectly encoded as '%2e' instead of '%2f' - and you're missing the last part of your original URL (as posted in 0009282:0020642) -

http://mantis/set_project.php?project_id=0&ref=http%3A%2F%2Fmantis%2Fview_all_set.php%3Ftype%3D1%26temporary%3Dy%26handler_id%3D48%26hide_status%3D80

dregad

dregad

2023-09-28 12:32

developer   ~0068144

dyawlak,

You did not provide any feedback; I am therefore resolving this issue as "no change required".

Feel free to reopen the issue at a later time and provide the requested information.