javi
efa79b243c
fixed lzma decoding to fix browser requirements
2013-04-24 15:10:58 +02:00
Sandro Santilli
f0fc44aac9
Fix fetching of affected tables when mapnik tokens are used
...
We'll replace !bbox! with an empty box and !pixel_width! and
!pixel_height! with 1 before passing the query to CDB_QueryTable
2013-04-23 17:29:49 +02:00
Sandro Santilli
f85ca16c62
Change LZMA expected encoding from HEX to base64, reducing its size
2013-04-19 16:16:20 +02:00
Sandro Santilli
14953e992f
Multilayer API changes, target 1.2.0
...
- Layers passed by index in grid fetching url
- Interactivity only specified in layergroup config
- Encode cache_buster as part of the token
2013-04-15 18:51:28 +02:00
Sandro Santilli
78a6f4de1b
Keep a counter of layergroup created per user.
...
The counter is in redis db 5, in a field "mapviews" of an hash
"tiler:users:USERNAME". It's incremented whenever the layergroup
token for a configuration is requested.
2013-04-12 17:28:34 +02:00
Sandro Santilli
83e6e0d457
More verbose logging for SQL api connection errors
2013-04-09 18:07:53 +02:00
Sandro Santilli
e5af3b90f4
Revert "Require interactivity param in single-layer grid fetching request"
...
This reverts commit 3383c44eb7
.
Fixes regression with default interactivity parameter.
Closes #74 . See #69 .
2013-04-05 18:11:36 +02:00
Sandro Santilli
113b70cf98
Add support for creating layergroups via GET
2013-04-02 13:30:49 +02:00
Sandro Santilli
3383c44eb7
Require interactivity param in single-layer grid fetching request
...
Closes #69
2013-03-29 18:25:28 +01:00
Sandro Santilli
001bf97d69
Add support for LZMA compressed GET parameters
...
You can now replace the whole query string with a single `lzma`
parameter having as value an hex encoded LZMA compressed version
of the whole query string as a JSON object.
2013-03-22 18:55:59 +01:00
javi
e53122de7e
fixed last_update in laytergroup response
2013-03-21 11:39:55 +01:00
Sandro Santilli
3ff3dc2c97
Cleanup, handle error in req2param on flushCache
2013-03-15 19:25:13 +01:00
Sandro Santilli
4605bd1e1d
Add last_modified field to POST layergroup response ( #72 )
...
Includes testcases
2013-03-13 18:41:37 +01:00
Sandro Santilli
dfc4a02398
Fix X-Cache-Channel for multilayer (by token) responses
...
Required upgrading Windshaft to 0.9.2
Includes testcases
2013-03-13 16:45:15 +01:00
Sandro Santilli
402fc90e63
Absence of X-Cache-Channel will be enough for Varnish to skip caching
...
Do not override Cache-Control in this case, which means let the
clients or geographical proxies cache the response with usual TTL.
2013-03-13 12:01:35 +01:00
Sandro Santilli
e8cbc666e2
Handle SQL API errors by logging them and requesting NO cache
...
SQL api is used to determine the list of source tables affected
by a query. Before this commit, the X-Cache-Channel header set
on sql api error was an arbitrary 'table' string, now the header
is omitted, the error logged and Cache-Control and Pragma headers
are sent as an attempt to request no caching.
The code includes test for this mechanism.
2013-03-13 10:39:00 +01:00
Sandro Santilli
f6d50fafb1
Expose renderer settings in the environment config files
...
These are: metatile, bufferSize and cache_ttl
2013-02-25 17:05:59 +01:00
Sandro Santilli
9dcf6a1acf
Set 'base_url_notable' config for Windshaft-0.9 (multilayer)
2013-02-12 18:53:41 +01:00
Sandro Santilli
a79b999e7a
Do not try to send commands to an unoconnected redis client
...
This changes "Cannot read property 'HGET' of null" messages into
"Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED".
2013-02-11 15:05:23 +01:00
Sandro Santilli
6b71cde56e
Do not throw an Error embedding another Error
...
Should fix #68 , but doesn't come with an automated test
2013-02-08 12:27:49 +01:00
Sandro Santilli
cb57dfb27d
Fix async throws in getGeometryType, getInfoWindow and getMapMetadata
2013-02-08 12:14:53 +01:00
Sandro Santilli
8d4f033a56
Revert "getDatabase: properly handle redis connection failures"
...
This reverts commit dd19d74149
.
The code was already correct
2013-01-28 17:39:50 +01:00
Sandro Santilli
dd19d74149
getDatabase: properly handle redis connection failures
2013-01-28 17:30:58 +01:00
Sandro Santilli
ac49abe750
Do not leak redis client connections on redis command error
2013-01-28 17:13:49 +01:00
Sandro Santilli
b130b67f24
Check redis connection at pool creation time
2013-01-28 17:12:21 +01:00
Sandro Santilli
19436a8b14
Let "style_convert" pass by, add tests for GET and POST with it
2012-11-14 15:28:58 +01:00
Sandro Santilli
52303e7821
Fix use of "style_version" with GET (inline styles)
...
It took a lot of time to produce a testcase for this as the test
config was setting srid to 4326 but not changing geom column name
thus all tiles fetched by tests returned blank (ouch!)
2012-11-06 12:45:04 +01:00
Sandro Santilli
2bc09a61cf
Add support for cache_policy=persistent
...
When cache_policy=persistent is given the response will contain
a Cache-Control header requesting for 1 year lifetime caching
2012-10-24 09:40:05 +02:00
Sandro Santilli
d9e6aeb254
Fix crash on unknown user. Closes #55 .
2012-10-22 15:30:16 +02:00
Sandro Santilli
ab8cb5bbb3
Add Windshaft-cartodb version to the /version route
2012-10-15 17:03:57 +02:00
Sandro Santilli
20dca2e8f8
Use windshaft-0.6.2 sendError function to send non-200 responses
...
Ensures all errors are logged
2012-10-11 16:48:41 +02:00
Sandro Santilli
6a1933bed9
Print a warning when configured mapnik version doesn't match installed
2012-10-09 11:45:57 +02:00
Sandro Santilli
961269fa1f
Autodetect target mapnik version and let config override it
...
Closes #40
2012-10-08 17:45:03 +02:00
Sandro Santilli
8a759babf0
Add tests for getting metadata ( #183 )
...
... and fix forbidden metadata response
2012-10-05 17:08:24 +02:00
Sandro Santilli
7196c8c285
Only invalidate cache on del style when caching is enabled
2012-10-05 16:55:58 +02:00
Sandro Santilli
dc9286b610
Accept "api_key" as "map_key", in both query_string and POST body
...
Closes #38
2012-10-05 16:17:49 +02:00
Sandro Santilli
1ed65544e5
Send detailed error when user metadata are missing from redis
...
Include tip on how to restore the redis db from cartodb.
2012-10-05 16:05:32 +02:00
Sandro Santilli
a201888fde
Make logging format configurable ( closes #4 )
...
NOTE: the default format for the "test" environment is without
ansi colors, to be easier on remote terminal sessions
2012-10-05 15:52:51 +02:00
Sandro Santilli
bc506784ca
Add an X-Cache-Channel header to all GET requests. Closes #53 .
2012-09-25 09:27:03 +02:00
Sandro Santilli
dd34fc507a
Automated localization of external resources referenced in carto
2012-09-19 18:52:13 +02:00
Sandro Santilli
dcbe051654
Return 401 status for unauthorized requests (see #48 )
2012-09-05 20:16:55 +02:00
Sandro Santilli
b469d5eabf
Rename authenticated postgresql user configuration setting
...
See issue #49
2012-09-05 15:49:10 +02:00
Sandro Santilli
5ca84d9ffc
Always replace the database user parameter in the XML style
...
This provides for an automatic migration of styles to any new
authentication user.
2012-09-05 15:41:22 +02:00
Sandro Santilli
87b0e07815
Expose Varnish cache TTL in configuration. Closes #46
2012-09-03 18:57:35 +02:00
Sandro Santilli
b9e29938e2
Compile XML processing regular expression only once.
...
Requests per second from ~95 to ~98 with a "standard" test.
2012-09-03 15:30:31 +02:00
Sandro Santilli
1c9f63c901
Add XML processor to change database user when authenticated
2012-09-03 14:54:23 +02:00
Sandro Santilli
9ba80acab7
Properly bubble getInfowindow errors up to response
2012-08-14 20:01:05 +02:00
Sandro Santilli
b30c8d9a98
Send jsQuery ready error message on GET /infowindow errors
2012-08-14 20:00:26 +02:00
Sandro Santilli
ca47fbd10b
Fix unauthenticated access to table styles. Closes #43 .
...
Re-introduces use of the redis "privacy" hash key as an additional
security measure for requests that do not involve PostgreSQL access.
Accessing private table styles is tested with this commit.
Accessing private table metadata or infowindow is _not_ tested,
but should also be fixed now.
2012-08-14 19:26:40 +02:00
Sandro Santilli
fb3f3a312e
Really fix setting or deleting styles from unauth. request
...
Closes #44
2012-08-14 16:15:41 +02:00