Yahoo Consumer Keys are longer than the 64 characters allowed by the db and
result in the server no being returned by listServers and errors occurring due
to duplicate key on updateServer.
Suggest increasing size of ocr_consumer_key to 128 characters
CREATE TABLE `oauth_consumer_registry` (
`ocr_id` int(11) NOT NULL AUTO_INCREMENT,
`ocr_usa_id_ref` int(11) DEFAULT NULL,
`ocr_consumer_key` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`ocr_consumer_secret` varchar(64) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`ocr_signature_methods` varchar(255) NOT NULL DEFAULT 'HMAC-SHA1,PLAINTEXT',
`ocr_server_uri` varchar(255) NOT NULL,
`ocr_server_uri_host` varchar(128) NOT NULL,
`ocr_server_uri_path` varchar(128) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
`ocr_request_token_uri` varchar(255) NOT NULL,
`ocr_authorize_uri` varchar(255) NOT NULL,
`ocr_access_token_uri` varchar(255) NOT NULL,
`ocr_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`ocr_id`),
UNIQUE KEY `ocr_consumer_key` (`ocr_consumer_key`,`ocr_usa_id_ref`),
KEY `ocr_server_uri` (`ocr_server_uri`),
KEY `ocr_server_uri_host` (`ocr_server_uri_host`,`ocr_server_uri_path`),
KEY `ocr_usa_id_ref` (`ocr_usa_id_ref`)
)
Original issue reported on code.google.com by pyhubltd on 6 Jul 2010 at 9:58
Original issue reported on code.google.com by
pyhubltd
on 6 Jul 2010 at 9:58