Bug #2395
addHTTPAuth regex behaves crazy on PS3 (could be the same as on linux, rpi)
Status: | Fixed | Start date: | 11/28/2014 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | % Done: | 100% | ||
Category: | General | |||
Target version: | 4.10 | |||
Found in version: | 4.7.527 | Platform: | PS3 |
Description
00:01:23.883: NET [DEBUG]:Connecting fd 0xeb = 0x80010224 errno=36 00:01:23.884: netConnect [DEBUG]:0x000000: 00 02 01 bb 40 eb 97 09 00 00 00 00 00 00 00 00 [email protected]
Associated revisions
Use same regex engine (trex) for all targets
Fixes #2395
History
#1
Updated by Leonid Protasov over 7 years ago
- Subject changed from netConnect errors on ps3 no matter if connection reuse is on/off (cfw 4.65) to req.setHeader won't work either plugin.addHTTPAuth('https://.*\.copy\.com', function(req) does
RPi and Linux are not affected. Only PS3. No matter JS or Duktape. Reproducible on copydotcom plugin. Headers are set like this:
plugin.addHTTPAuth('https://.*\.copy\.com', function(req) { req.setHeader('X-Api-Version', 1); req.setHeader('Authorization', 'OAuth oauth_consumer_key="' + CONSUMER_KEY + '", ' + 'oauth_signature_method="PLAINTEXT", ' + 'oauth_nonce="' + showtime.md5digest(new Date().getTime()) + '", ' + 'oauth_timestamp="' + new Date().getTime() + '", ' + 'oauth_version="1.0", ' + 'oauth_token="' + store.access_token + '", ' + 'oauth_signature="' + CONSUMER_SECRET + '&' + store.access_secret + '"'); });
#2
Updated by Leonid Protasov over 7 years ago
On Linux it is:
00:03:46.003: JS [DEBUG]:Add auth handler for ^https://.*.copy.com 00:03:46.003: HTTP [DEBUG]:Reusing connection to api.copy.com:443 (id=7) 00:03:46.005: HTTP [DEBUG]:> GET /rest/meta/ HTTP/1.1 00:03:46.005: HTTP [DEBUG]:> Cookie: COPY_AUTH=%7B%22a%22%3A%22z%22%2C%22www.copy.com%22%3A%22ATU-1192c83f04ed7af4a1e45a9f203f4a1d309d5ded%22%2C%22apiweb.copy.com%22%3A%22ATU-1192c83f04ed7af4a1e45a9f203f4a1d309d5ded%22%2C%22copy.com%22%3A%22ATU-1192c83f04ed7af4a1e45a9f203f4a1d309d5ded%22%7D 00:03:46.005: HTTP [DEBUG]:> Authorization: OAuth oauth_consumer_key="I8lxlFw7HtTjiCe8oKhHQlQPy9PsM527", oauth_signature_method="PLAINTEXT", oauth_nonce="fc8d325011396495bf5f0e46ac7b9054", oauth_timestamp="1416493716354", oauth_version="1.0", oauth_token="1aNo1GNudYbEfpWEofqM4VsrBdZXO72Q", oauth_signature="dfET0lUInz48z1sGLVkWPlOWJUaeMDkTNtYxipqhV6SCJnYV&nZuz7aNM9Hs0EaMlb8bA485fS0rhHC0lo5dDAYwlKzXGF5tx" 00:03:46.005: HTTP [DEBUG]:> X-Api-Version: 1 00:03:46.005: HTTP [DEBUG]:> User-Agent: Showtime Linux/x86_64 4.7.527.g8ad51
On PS3 it is:
00:18:02.596: JS [DEBUG]:Add auth handler for ^https://.*.copy.com 00:18:02.597: NET [DEBUG]:Connecting fd 0x168 = 0x80010224 errno=36 00:18:02.597: netConnect [DEBUG]:0x000000: 00 02 01 bb 40 eb 97 13 00 00 00 00 00 00 00 00 [email protected] 00:18:02.730: HTTP [DEBUG]:Connected to api.copy.com:443 (id=41) 00:18:02.730: HTTP [DEBUG]:> GET /rest/meta/ HTTP/1.1 00:18:02.731: HTTP [DEBUG]:> Cookie: COPY_AUTH=%7B%22a%22%3A%22z%22%2C%22www.copy.com%22%3A%22ATU-0c6359e63348bdb86ab2b7f81a9a6d445761549e%22%2C%22apiweb.copy.com%22%3A%22ATU-0c6359e63348bdb86ab2b7f81a9a6d445761549e%22%2C%22copy.com%22%3A%22ATU-0c6359e63348bdb86ab2b7f81a9a6d445761549e%22%7D 00:18:02.731: HTTP [DEBUG]:> User-Agent: Showtime PS3 4.7.527.g8ad51.dirty
#3
Updated by Leonid Protasov over 7 years ago
- Subject changed from req.setHeader won't work either plugin.addHTTPAuth('https://.*\.copy\.com', function(req) does to addHTTPAuth regex behaves crazy on PS3 (could be the same as on linux, rpi)
#4
Updated by Leonid Protasov over 7 years ago
- Priority changed from High to Normal
- Target version deleted (
4.8)
#5
Updated by Andreas Smas over 7 years ago
Let's switch to using the same regex engine for all targets to avoid differences
#6
Updated by Leonid Protasov over 7 years ago
- Target version set to 4.10
#7
Updated by Andreas Smas over 7 years ago
- Status changed from New to Fixed
- % Done changed from 0 to 100
Applied in changeset git|61370d6fc22af51773af1f4d8936850781ddc2bc.