Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
First, when trying to access page - http://localhost/drupal/drupal-cvs/files/%C2%ED%F3%F2%F0%E8%20%EA%EE%EC%...
Warning: pg_query(): Query failed: ERROR: invalid UTF-8 byte sequence detected near byte 0xe2 in d:\highspeed\htdocs\drupal\drupal-cvs\includes\database.pgsql.inc on line 125
Warning: ERROR: invalid UTF-8 byte sequence detected near byte 0xe2 query: watchdog INSERT INTO watchdog (uid, type, message, severity, link, location, referer, hostname, timestamp) VALUES (1, 'page not found', 'files/������ ���������� - ���_0.jpg', 1, '', 'http://localhost/drupal/drupal-cvs/files/%C2%ED%F3%F2%F0%E8%20%EA%EE%EC%EF%FC%FE%F2%E5%F0%E0%20-%20%F4%EE%ED_0.jpg', '', '127.0.0.1', 1163969314) in d:\highspeed\htdocs\drupal\drupal-cvs\includes\database.pgsql.inc on line 144
--------------------
Second, when trying to add new file with page larger then 128 or with cyryllics in filename.
--------------------
Third, can't add several files.
============
Tests are under Drupal 5.0 cvs, Postgre 8.1
Comment | File | Size | Author |
---|---|---|---|
#9 | watchdog_no_default.patch.txt | 1.23 KB | Heine |
#6 | system.install_watchdog_location_20061120_1453_patch.txt | 1.83 KB | sammys |
#5 | upload_download | 995 bytes | chx |
#4 | upload_error_0 | 819 bytes | chx |
Comments
Comment #1
doq CreditAttribution: doq commentedSecond, when trying to add new file with path larger then 128 or with cyryllics in filename.
Comment #2
chx CreditAttribution: chx commentedYou likely are using KOI8-R or some other non UTF-8 charset.
Comment #3
sammys CreditAttribution: sammys commented@chx is correct about the character set. Check which character set you're using on the computer you're uploading from and ensure it's UTF-8.
Aside from that you've reported a bug with watchdog not being able to report URLs containing a large number of URL escaped chars in the filename. The filename essentially expands to 3 times longer. This is the concern.
There are only two ways around this:
@chx: what do you think?
--
Sammy Spets
Synerger
http://synerger.com
Comment #4
chx CreditAttribution: chx commentedI am not 100% but that error is triggered in somewhere deep in PHP, Drupal just traps it. I am not sure how could we change the URL... please advice. Writing a function which downloads a file given a fid should not be that hard, I attached the patch for that. The patch DOES NOT fix anything and SHOULD NOT be committed -- it's dead code at this moment.
Comment #5
chx CreditAttribution: chx commented*grumble* clicked the wrong patch. too many upload issues one night :)
Comment #6
sammys CreditAttribution: sammys commentedLooks like it'll be too difficult to do suggestion 2 due to direct file access 404s invoking a watchdog() call. So the only solution is to convert the watchdog.location field to text. Attached is a patch and it's RTBC for PostgreSQL. Waiting for someone to confirm the update works for MySQL.
Comment #7
sammys CreditAttribution: sammys commentedComment #8
drummCommitted to HEAD.
Comment #9
Heine CreditAttribution: Heine commentedMySQL does not support DEFAULT values on TEXT fields (see also http://drupal.org/node/54702).
Comment #10
Heine CreditAttribution: Heine commentedThis patch introduces a DEFAULT value for a TEXT field, while we just took them all out.
Comment #11
Heine CreditAttribution: Heine commentedComment #12
Dries CreditAttribution: Dries commentedCommitted. Thanks.
Comment #13
(not verified) CreditAttribution: commented