thumbor: Thumbor URI with question mark return 404
when i try using query string on thumbor uri, returns 404.
2014-07-29 17:44:14 thumbor:WARNING ERROR retrieving image http://f11688041dcc49128cfc4c9931f10b2f?23213131: [Errno -2] Name or service not known
2014-07-29 17:44:14 tornado.access:WARNING 404 GET /unsafe/f11688041dcc49128cfc4c9931f10b2f/c406191a221a5e1a55.jpg?23213131 (201.91.210.242) 6.90ms
2014-07-29 17:44:14 thumbor:WARNING ERROR retrieving image http://f11688041dcc49128cfc4c9931f10b2f?23213131: [Errno -2] Name or service not known
2014-07-29 17:44:14 tornado.access:WARNING 404 GET /unsafe/f11688041dcc49128cfc4c9931f10b2f/c406191a221a5e1a55.jpg?23213131 (201.91.210.242) 2.8
THUMBOR_LOG_FORMAT = '%(asctime)s %(name)s:%(levelname)s %(message)s'
THUMBOR_LOG_DATE_FORMAT = '%Y-%m-%d %H:%M:%S'
MAX_WIDTH = 800
MAX_HEIGHT = 600
QUALITY = 80
AUTO_WEBP = True
MAX_AGE = 604800
LOADER = 'thumbor.loaders.http_loader'
STORAGE = 'thumbor.storages.file_storage'
ENGINE = 'thumbor.engines.pil'
SECURITY_KEY = 'SENHA'
ALLOW_UNSAFE_URL = True
ALLOW_OLD_URLS = False
FILE_LOADER_ROOT_PATH = '/glusterfs'
STORES_CRYPTO_KEY_FOR_EACH_IMAGE = True
FILE_STORAGE_ROOT_PATH = '/glusterfs'
UPLOAD_ENABLED = True
UPLOAD_PHOTO_STORAGE = 'thumbor.storages.file_storage'
FILTERS = [
'thumbor.filters.brightness',
'thumbor.filters.contrast',
'thumbor.filters.rgb',
'thumbor.filters.round_corner',
'thumbor.filters.quality',
'thumbor.filters.noise',
'thumbor.filters.watermark'
]
# pip list
argparse (1.2.1)
backports.ssl-match-hostname (3.4.0.2)
boto (2.3.0)
Cheetah (2.4.4)
cloud-init (0.7.2)
configobj (4.7.2)
derpconf (0.6.0)
GnuPGInterface (0.3.2)
oauth (1.0.1)
Pillow (2.3.1)
pip (1.5.6)
prettytable (0.6.1)
pycrypto (2.6.1)
pycurl (7.19.0)
python-apt (0.8.8.2)
python-magic (0.4.6)
PyYAML (3.10)
requests (0.12.1)
setuptools (5.4.1)
six (1.1.0)
thumbor (4.2.1)
thumbor-pexif (0.14)
tornado (3.2.2)
unattended-upgrades (0.1)
wsgiref (0.1.2)
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 20 (10 by maintainers)
Sorry for the long time to respond to this.
@supergrilo you can’t use unencoded URLs. I was talking to other thumbor committers and remembered that.
Even if we fix this issue with the unsafe URL (which we should), you won’t be able to make it work with safe URLs. Can you try encoding the URL before using it? Are you using python? if not, try this URL:
/unsafe/f11688041dcc49128cfc4c9931f10b2f/c406191a221a5e1a55.jpg%3F234234
This should work properly.