cancel
Showing results for 
Search instead for 
Did you mean: 

[WD4A_FileUpload][ASSERT Dump when uploading special characters (Accent)]

hermanoclaro
Participant
0 Kudos

Hello,

I did some research on the forums, but didn't dig something helpful to this problem that I'm facing on the component FileUpload over WD4A.

It's set like this: The user select the file to send to the server via the FileUpload component and presses a button created on the toolbar of a Group. Inside this button I have the code that will write the file on a custom table.

When the user selects a file that have special characters on the filename (like accent in my case), the button, when pressed, leads to a ASSERT dump on the program /1WDA/CASTANDARD====*. This dump occurs on "assert value CP l_filename_pattern", it seems that this assert is for the server to verify if the HTTP request sent to it is for the file it's waiting, because l_filename_pattern is filled on CL_HTTP_ENTITY->IF_HTTP_ENTITYGET_HEADER_FIELD reading for the head field name "content_filename". The assert is wrong because the accent is represented (it seems) in the UTF-8 like (#3 or something like that).

I did some tests using a HTTP tracer on FF and it seems that the browser is sending this value with the wrong content, but I tried it with FF and IE and both of them goes to the same error.

Any thoughts?

Thanks in advance!

Hermano

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Hermano,

maybe the following 2 SAP Notes could be helpful in this case:

[1360610|https://service.sap.com/sap/support/notes/1360610] "WD ABAP FileUpLoad dumps if filename contains special chars"

[1307038|https://service.sap.com/sap/support/notes/1307038] "WD ABAP: Fileupload dumps if file name contains ? and #"

Best regards,

Andreas