View Issue Details

IDProjectCategoryView StatusLast Update
0005614mantisbtbugtrackerpublic2012-09-05 05:57
Reportermasc Assigned Toatrol  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionunable to reproduce 
PlatformX86OSWindowsOS VersionWin2K
Product Version1.0.0a2 
Summary0005614: CGI Error with long text fields
Description

I just discovered a problem in the following function:
string_nl2br( $p_string, $p_wrap = 100 )
when the $p_string field is too long (in attachment the content of the description fields that produces the error).
I have little debugged the code and the problem is located in main loop inside string_nl2br function

TagsNo tags attached.
Attached Files
fields_too_long.txt (2,478 bytes)   
Looking at the attached logs, the connection is closed by the RBC just after sending a MA to the EVC. Following the airgap Euroradio trace (TX is EVC, RX is RBC):

14:30:25.510  RX  RR   7E 03 01 E6 48 B2 7E
14:30:25.520  RX  RR   7E 03 01 E8 36 5B 7E
14:30:25.540  RX  RR   7E 03 01 EA 24 78 7E
14:30:25.480  TX  I    7E 03 EA 1E 01 80 08 65 93 80 57 B0 C3 E8 00 AE 21 97 4D 01 5A C3 0F A0 02 B0 86 CA 80 04 F7 F0 7E
14:30:25.560  RX  RR   7E 03 01 EC 12 1D 7E
14:30:25.560  TX  I    7E 03 EC 1E 01 80 A3 0C 3E 80 09 32 19 5E 00 12 4C 30 FA 00 24 48 65 5C 80 48 30 C4 4E 80 41 8E 7E
14:30:25.610  RX  RR   7E 03 01 EE 00 3E 7E
14:30:25.610  TX  I    7E 03 EE 1E 01 80 8E 21 9A 18 01 12 43 17 D4 02 1D 86 41 00 8E 45 39 2A 61 A0 3C 52 00 FC 4F EC 7E
14:30:25.690  RX  RR   7E 03 01 F0 FF C7 7E
14:30:25.690  TX  I    7E 03 F0 1E 01 00 D3 F4 C0 00 02 0C 04 09 F0 F4 7E
14:30:25.720  RX  RR   7E 03 01 F2 ED E4 7E
14:30:25.720  TX  I    7E 03 F2 1E 01 80 04 F0 00 01 98 A7 E9 00 00 2A 42 04 07 FF FF FF FF FC 82 01 1D C0 15 33 B1 F1 7E
14:30:25.790  RX  RR   7E 03 01 F4 DB 81 7E
14:30:25.790  TX  I    7E 03 F4 1E 01 80 29 38 79 04 02 3B 83 53 9C 32 38 32 08 04 77 0A AA 08 26 40 C4 10 08 EE 7F AF 7E
14:30:25.870  RX  RR   7E 03 01 F6 C9 A2 7E
14:30:25.860  TX  I    7E 03 F6 1E 01 00 1D 54 10 BB 82 5F A8 50 88 84 27 60 6C D1 13 32 7E

[Movement Authority received on-board]

14:30:25.910  TX  RR   7E 01 01 20 CA A4 7E
14:30:25.900  RX  RR   7E 03 01 F8 B7 4B 7E
14:30:25.920  TX  I    7E 03 F8 20 01 00 06 80 00 01 00 01 01 86 3F 7E

[DR from RBC 06 80 00 01 00 01 01]

14:30:25.960  TX  RR   7E 01 01 22 D8 87 7E
14:30:25.960  TX  RR   7E 01 01 24 EE E2 7E
14:30:25.980  TX  RR   7E 01 01 25 67 F3 7E
14:30:25.930  RX  I    7E 01 2E F8 01 80 04 F0 00 01 89 0A 92 03 80 01 2F 02 C0 00 00 40 01 2E 78 7F B4 E9 58 9D DD AC 7E
14:30:26.000  TX  RR   7E 01 01 26 FC C1 7E
14:30:26.030  TX  RR   7E 01 01 28 82 28 7E
14:30:26.020  RX  I    7E 01 30 F8 01 00 92 F7 B2 29 91 3E 7E

[Acknowledgement of MA by on-board]

14:30:26.040  TX  RR   7E 01 01 2A 90 0B 7E
14:30:26.061  TX  RR   7E 01 01 2C A6 6E 7E
14:30:26.050  RX  I    7E 01 32 F8 01 00 04 6F 00 01 19 6F BF 7E

[AK of DR 04 6F 00 01 19]

14:30:26.071  TX  RR   7E 01 01 2E B4 4D 7E
14:30:26.081  RX  RR   7E 03 01 FA A5 68 7E
14:30:26.101  RX  DISC 7E 01 53 81 76 7E
14:30:26.211  TX  RR   7E 01 01 2F 3D 5C 7E
14:30:26.111  RX       41 54 48 0D 0A

--- DISCONNECTION ---
fields_too_long.txt (2,478 bytes)   

Activities

grangeway

grangeway

2012-02-05 19:06

reporter   ~0031159

Masc,

Do you know if this still applies in 1.2.x releases?

atrol

atrol

2012-08-26 15:37

developer   ~0032679

masc, this issue is not reproducible with current version of MantisBT.
Feel free to reopen the issue if there are still problems after upgrading.