View Issue Details

IDProjectCategoryView StatusLast Update
0011155mantisbtotherpublic2010-02-22 14:35
Reporteryw84ever Assigned Todhx  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Product Version1.2.0rc2 
Fixed in Version1.2.0 
Summary0011155: user is directed to my view after uploading a file : being redirected back to viewed bug is expected
Description

upon uploading a file mantis loads the my view page instead of bouncing back to the ticket to which one just uploaded a file

Steps To Reproduce

1) view a ticket (view.php?=id###)
2) upload a file
-) bug_file_add.php is loaded
-) upload is successful
3) mantis redirects to my_view_page.php rather than back to view.php?id=### (which is what i expected)

Additional Information

not 1.2.0rc2 but rather master-1.2.x, currently at commit 70bbad263af33fbcfd0a99bc64f33f98ddc1c291

TagsNo tags attached.
Attached Files
redirect.txt (65 bytes)   
Attempting to reproduce mantisbt #11155 here on mantisbt.org/bugs
redirect.txt (65 bytes)   

Relationships

has duplicate 0011165 closeddhx redirect flow has changed when reporting an issue 
has duplicate 0011146 closeddhx login for manage page endlessly redirects to my view page 
has duplicate 0011408 closeddhx automatic redirection after edition of custom fields is pointing to lan address 

Activities

yw84ever

yw84ever

2009-11-11 06:20

reporter   ~0023652

Attempted to reproduce the effect on this tracker, running <i>MantisBT 1.2.0rc2 git live</i>. Mantis correctly redirected me back to this ticket after the file was successfully uploaded.

squarebox

squarebox

2009-11-12 00:32

reporter   ~0023669

Last edited: 2009-11-12 00:47

I just tried this as well thinking it was related to 0011146, and i too was redirected to myview after uploading a file from the issue edit screen in both rc2 as well as the GIT rc2.

note: tried this with the default user settings. I'm wondering if the redirect to previous screen (in this case redirecting from the "bug updated screen" to the "bug issue screen") in the cache is not being set and thus defaulting to the myview screen.

yw84ever

yw84ever

2009-11-12 04:13

reporter   ~0023675

As was the case with 0011165 as I noted in 0011165:0023674, this issue too first changed behavior in commit 55878bd7f3bf7310059a5fb421fb351dff88be82.

(again ran git bisect, adding a file, watching to where i was redirected)

vboctor

vboctor

2009-11-12 08:36

manager   ~0023691

For convenience, here is the information about the commit:

David Hicks <hickseydr@optusnet.com.au>
Sun, 8 Nov 2009 08:25:39 +0000 (19:25 +1100)
commit 55878bd7f3bf7310059a5fb421fb351dff88be82

Fix 0010535: Escape path and short_path configuration options

As these two options can contain slashes, periods and other characters
with special meaning in PRCE, they must be escaped prior to use within
regular expression patterns.

dhx

dhx

2009-11-12 08:45

reporter   ~0023692

Is it fixed in the latest checkout of the repository?

I believe John may have fixed this bug with http://git.mantisbt.org/?p=mantisbt.git;a=commit;h=9f2e24daf90dd02bde8c9d8aefa962d874b0f5f1

squarebox

squarebox

2009-11-12 20:10

reporter   ~0023704

i have applied the fix list in 0010535 but still getting the redirect to my view page

dhx

dhx

2009-11-13 11:25

reporter   ~0023714

Fixed it at last... I am shocked as to how bad my earlier commit (193ae8b94faa104d3d74a8e169eda99e10cbcf8c) was... it was in a hurry and I didn't test it at all. And I haven't used/worked on Mantis since then. Lesson learnt!

Thanks for being patient.

Please checkout the latest revision from the repository.

yw84ever

yw84ever

2009-11-13 13:24

reporter   ~0023718

verifying here as well. with git master-1.2.x at commit 0eb89e062052f5b57c375006774482b77ddc9d63, i am directed back to the bug view page after uploading a file

squarebox

squarebox

2009-11-16 21:15

reporter   ~0023732

fix works for me, thanx

Related Changesets

MantisBT: master-1.2.x 0eb89e06

2009-11-13 11:15

dhx


Details Diff
Fix 0011155: Broken PCRE regex strings broke page redirects

Commit 193ae8b94faa104d3d74a8e169eda99e10cbcf8c broke page redirects due
to completely broken PCRE regex strings. My fault, was in a hurry. Sorry!
Affected Issues
0011155
mod - core/string_api.php Diff File

MantisBT: master 9e259188

2009-11-13 11:15

dhx


Details Diff
Fix 0011155: Broken PCRE regex strings broke page redirects

Commit 193ae8b94faa104d3d74a8e169eda99e10cbcf8c broke page redirects due
to completely broken PCRE regex strings. My fault, was in a hurry. Sorry!
Affected Issues
0011155
mod - core/string_api.php Diff File