From d983edc77d64e36339ea15fdad26a32fcf1d1dff Mon Sep 17 00:00:00 2001 From: fver Date: Wed, 27 Sep 2023 08:21:17 +0200 Subject: [PATCH] fixing #690 internal_error --- src/pyicloud_ipd/services/photos.py | 2 +- tests/vcr_cassettes/2sa_flow_valid_device.yml | 2 +- tests/vcr_cassettes/2sa_flow_valid_sms.yml | 2 +- tests/vcr_cassettes/autodelete_photos.yml | 75 +++++++++++++++++- .../download_autodelete_photos.yml | 77 ++++++++++++++++++- tests/vcr_cassettes/download_live_photos.yml | 2 +- tests/vcr_cassettes/listing_albums.yml | 2 +- tests/vcr_cassettes/listing_photos.yml | 2 +- .../listing_photos_bad_filename.yml | 2 +- .../listing_photos_missing_downloadUrl.yml | 2 +- .../listing_photos_missing_filenameEnc.yml | 2 +- .../listing_photos_no_delete.yml | 2 +- 12 files changed, 155 insertions(+), 17 deletions(-) diff --git a/src/pyicloud_ipd/services/photos.py b/src/pyicloud_ipd/services/photos.py index 455e3ed75..8807a3fe3 100644 --- a/src/pyicloud_ipd/services/photos.py +++ b/src/pyicloud_ipd/services/photos.py @@ -258,7 +258,7 @@ def __init__(self, service_root, session, params): def libraries(self): if not self._libraries: try: - url = ('%s/changes/database' % + url = ('%s/zones/list' % (self._service_endpoint, )) request = self.session.post( url, diff --git a/tests/vcr_cassettes/2sa_flow_valid_device.yml b/tests/vcr_cassettes/2sa_flow_valid_device.yml index 705e9fe34..84d2ea80e 100644 --- a/tests/vcr_cassettes/2sa_flow_valid_device.yml +++ b/tests/vcr_cassettes/2sa_flow_valid_device.yml @@ -198,7 +198,7 @@ interactions: User-Agent: - Opera/9.52 (X11; Linux i686; U; en) method: POST - uri: https://p10-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/changes/database + uri: https://p10-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/zones/list response: body: string: "{\n \"moreComing\" : false,\n \"syncToken\" : \"AQAAAAAAAwmVf//////////Kd+LphRdKGbpJMSeRX5Td\",\n diff --git a/tests/vcr_cassettes/2sa_flow_valid_sms.yml b/tests/vcr_cassettes/2sa_flow_valid_sms.yml index c90de54af..1a993307d 100644 --- a/tests/vcr_cassettes/2sa_flow_valid_sms.yml +++ b/tests/vcr_cassettes/2sa_flow_valid_sms.yml @@ -233,7 +233,7 @@ interactions: User-Agent: - Opera/9.52 (X11; Linux i686; U; en) method: POST - uri: https://p10-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/changes/database + uri: https://p10-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/zones/list response: body: string: "{\n \"moreComing\" : false,\n \"syncToken\" : \"AQAAAAAAAwmVf//////////Kd+LphRdKGbpJMSeRX5Td\",\n diff --git a/tests/vcr_cassettes/autodelete_photos.yml b/tests/vcr_cassettes/autodelete_photos.yml index 9b6e1094f..34ea778be 100644 --- a/tests/vcr_cassettes/autodelete_photos.yml +++ b/tests/vcr_cassettes/autodelete_photos.yml @@ -98,7 +98,7 @@ interactions: User-Agent: - Opera/9.52 (X11; Linux i686; U; en) method: POST - uri: https://p10-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/changes/database + uri: https://p10-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/zones/list response: body: string: "{\n \"moreComing\" : false,\n \"syncToken\" : \"AQAAAAAAAwmVf//////////Kd+LphRdKGbpJMSeRX5Td\",\n @@ -139,7 +139,6 @@ interactions: status: code: 200 message: OK - - request: body: '{"query":{"recordType":"CheckIndexingState"},"zoneID":{"zoneName":"PrimarySync"}}' headers: @@ -2713,7 +2712,7 @@ interactions: User-Agent: - Opera/9.52 (X11; Linux i686; U; en) method: POST - uri: https://p10-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/changes/database + uri: https://p10-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/zones/list response: body: string: '{"reason":"Invalid global session","error":2}' @@ -2749,4 +2748,74 @@ interactions: status: code: 421 message: Misdirected Request +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '2' + Content-type: + - text/plain + Cookie: + - X-APPLE-WEBAUTH-LOGIN="v=1:t=IAAAAAAABLwIAAAAAFtgxr8RDmdzLmljbG91ZC5hdXRovQCQSCot1ysxaNK8eNz5c3o4pabbwMChZkAwYYnM5nzRw_cptq-efEIK3kTElDTNXo1Ou2LFreUma4rWkZArBxetxIQs1mgO43nUQ08rr-1tp09p9iPn8FbiKxoIG_0kAMxN-rK6N-gdfoXaCL02rtN-s8LyAw~~"; + X-APPLE-WEBAUTH-PCS-Cloudkit="TGlzdEFwcGw6MTpBcHBsOjE6Ae20A/jaOB7Jp/vb0QQJstK4aC/F9i0DIRFT7bxTXJizeopWgJ+09s8DSHyTC7mOzA+YqMa/YVKiI/YOEwMRXKPd/v/e0EPvrwf+g9U2kB85GXP3ZIKMhVFfkjv5rTyKhfilxus1/OUAXx9eLXw274+0dQE7ZShJq5+CB3sK7gbWQb9AjoY+OQ=="; + X-APPLE-WEBAUTH-PCS-Documents="TGlzdEFwcGw6MTpBcHBsOjE6AeyyUmn+DxfQYVkwS4N9KSWo9wQz3FWFkhOsYhtozsSvmSzd7PIGBI28hdy+30alZ0AUg7l+WA+D+9KhtpVipJ7GtvAoYPrx7124rxYjRftdasTAPNOrWNCHxqZy75xdc47rq77SmFwFIMnv1U7bBTNy265B0hNRUv09mpWG/d9C0J6jEQlLvg=="; + X-APPLE-WEBAUTH-PCS-Mail="TGlzdEFwcGw6MTpBcHBsOjE6AWsK+EYkcW5oCncaZt7mWIyznpVvILbzwn2hjZGRXNVYALDgK/nbNLghifgSy5O8GjUJJdkt0P3j8PKXSMzJVa55N73DAdTxKkrR6l/lcC0O8mjdQ8vV0UDrXrf9HGfK2LxPHpCWHW2PfdT8LUYe2wLnNeV14aB3tyUwziedkrUeGoIw5Pvi4w=="; + X-APPLE-WEBAUTH-PCS-News="TGlzdEFwcGw6MTpBcHBsOjE6AXWNsktajaYk/c4U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lGk6St28MKmHpBF+54N2quqvXRDfhrOHrIHVyDbN6A=="; + X-APPLE-WEBAUTH-TOKEN="v=2:t=IAAAAAAABLwIAAAAAFtgxsERDmdzLmljbG91ZC5hdXRovQASzAe9yIthZ-z1SRcqbQ0QIFNur7L-O_MaKbLKMJ7AGsQL-BmsThQkt5_QYLQZO1sx_XeVlKULNqHgoXD2wtFpVlPqPOQhRJ-EVRZKo7sAg9g3W-agXmOyFPOcnyDlTx7ZY-6bEIAYzbJQl9mpK8my-qugJw~~"; + X-APPLE-WEBAUTH-USER="v=1:s=0:d=185776146"; X-APPLE-WEBAUTH-VALIDATE="v=1:t=IAAAAAAABLwIAAAAAFtgxr8RDmdzLmljbG91ZC5hdXRovQCQSCot1ysxaNK8eNz5c3o4pabbwMChZkAwYYnM5nzRw_cptq-efEIK3kTElDTNXo1Ou2LFreUma4rWkZArBxetxIQs1mgO43nUQ08rr-1tp30Gie0pjl83-aaa4aveSRRB_K8jekyg7n7MT2fmxzUenT-EJg~~" + Origin: + - https://www.icloud.com + Referer: + - https://www.icloud.com/ + User-Agent: + - Opera/9.52 (X11; Linux i686; U; en) + method: POST + uri: https://p10-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/zones/list + response: + body: + string: '{"reason":"Invalid global session","error":2}' + headers: + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Origin: + - https://www.icloud.com + Connection: + - keep-alive + Content-Type: + - application/json; charset=UTF-8 + Date: + - Wed, 27 Sep 2023 06:16:13 GMT + Server: + - AppleHttpServer/3faf4ee9434b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains; + Timing-Allow-Origin: + - https://www.icloud.com + X-Apple-Edge-Response-Time: + - '369' + X-Apple-Request-UUID: + - 8aeae4b3-a16b-4548-9d8a-915a8c5f3bd1 + X-Responding-Instance: + - ckdatabasews:10903501:st11p09me-ztbu01214301:8201:2325B321:12cc5c1f6299d43fa5927b7fc646265a2abab788 + access-control-expose-headers: + - X-Apple-Request-UUID,X-Responding-Instance,Via + content-length: + - '45' + via: + - xrail:st53p00ic-qujn15041902.me.com:8301:23R353:grp60,631194250daa17e24277dea86cf30319:d16545ae901b624b52df917e5ff203c2:nlhfd1 + x-apple-user-partition: + - '9' + status: + code: 421 + message: Misdirected Request version: 1 diff --git a/tests/vcr_cassettes/download_autodelete_photos.yml b/tests/vcr_cassettes/download_autodelete_photos.yml index fbd4140de..d5510a0a5 100644 --- a/tests/vcr_cassettes/download_autodelete_photos.yml +++ b/tests/vcr_cassettes/download_autodelete_photos.yml @@ -269,7 +269,7 @@ interactions: User-Agent: - Opera/9.52 (X11; Linux i686; U; en) method: POST - uri: https://p54-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/changes/database + uri: https://p54-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/zones/list response: body: string: "{\n \"moreComing\" : false,\n \"syncToken\" : \"AQAAAAAAAwmVf//////////Kd+LphRdKGbpJMSeRX5Td\",\n @@ -10488,7 +10488,7 @@ interactions: User-Agent: - Opera/9.52 (X11; Linux i686; U; en) method: POST - uri: https://p54-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/changes/database + uri: https://p54-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/zones/list response: body: string: "{\n \"moreComing\" : false,\n \"syncToken\" : \"AQAAAAAAAwmVf//////////Kd+LphRdKGbpJMSeRX5Td\",\n @@ -10529,7 +10529,6 @@ interactions: status: code: 200 message: OK - - request: body: '{"query":{"recordType":"CheckIndexingState"},"zoneID":{"zoneName":"PrimarySync"}}' headers: @@ -18363,7 +18362,7 @@ interactions: User-Agent: - Opera/9.52 (X11; Linux i686; U; en) method: POST - uri: https://p54-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/changes/database + uri: https://p54-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/zones/list response: body: string: '{"reason":"Invalid global session","error":2}' @@ -18399,4 +18398,74 @@ interactions: status: code: 421 message: Misdirected Request +- request: + body: '{}' + headers: + Accept: + - '*/*' + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '2' + Content-type: + - text/plain + Cookie: + - X-APPLE-UNIQUE-CLIENT-ID="Bw=="; X-APPLE-WEBAUTH-LOGIN="v=1:t=Bw==BST_IAAAAAAABLwIAAAAAGR_8VQRDmdzLmljbG91ZC5hdXRovQB_ABV6RApEPq82ByPdBFIT2DmZ3sFC8ggKtIdGh2jMImZb46kfIUX2uc_ROD-Q9zRcTu3CaDypDuWgeUg3MY3ItAW2jBNKGu0WZxzaDoJI06xlLUlX_8EV9uFj-QpAllL8ZGepYrHIv2dweiAfDRXAK0kqEA~~"; + X-APPLE-WEBAUTH-PCS-Cloudkit="TGlzdEFwcGw6MTpBcHBsOjE6AcgqWeCCvyKbw2ybb7b+dbC1/C2nJuDBOwP7fM4KWHjfJ4bfHagW3qoIAsRwiTZbT5rBUWxlD6Eu1D/J7xmPB8WEFuJMMRK7ufKl629LT4BEgKPEb12aLIy7OkA23qmfHVkBBB7YTB2pc7VnUPy1dX8fqj5DHs99GibT3KThPXrwlHxi5TXd7w=="; + X-APPLE-WEBAUTH-PCS-Documents="TGlzdEFwcGw6MTpBcHBsOjE6AdpUrFzoejI3weIjZZUiZ0mT18JP4PEeh8IC97qnhGXHDd33BpAm+MJs3/p7DL4V+CJIewdG4TFXlvyDHftJBNXdMBvonFzeKDHC00TUdbh1cLVKs+0Bk/yd7DmUrZj8jgmwdYGyEsQ5Hjxf887sSwDf9tpk9P4vRAx4kpGr8UdB+4vAKGUr3A=="; + X-APPLE-WEBAUTH-PCS-Mail="TGlzdEFwcGw6MTpBcHBsOjE6AQrEh7KjB9pP6DG/B2hXg6Y80WX7Qwgie0zpmPiHZwlwnTAdH7nMrLCc1lfhLdNLY9R84b4eYl3WYoSL+3rZsiTFgv5/GzrN/flky0pXy6MTdIXegc2YIMZhpcBaYbbblAkCndJ5pixls3pcd0o6+tt3MoWWUeFfNWcrC8/65LhVjEGaW2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21dkDteyMQ/KdYaYP/dM36DrucVi18c8p08LGSWdyghzE7fj9QuaJgq4/F+C3fhEwrkIO3o0U99rERbNZGmXFySDT9W5ZowRlDNKnplA=="; + X-APPLE-WEBAUTH-TOKEN="v=2:t=Bw==BST_IAAAAAAABLwIAAAAAGR_8VYRDmdzLmljbG91ZC5hdXRovQDJyoT-b1YRarSOq9akhwi1jLCBzsdKxalcy0jn0LFE-Yh9Ds6uCupgCwoJVqjila6No3Ot2H4pHCa7gtRvDvDJSGBSEkHSUuLayc0iPphadFHi5h-UIXCNDY8-84M7nKsc5iO-PMkKOWmYD-Hr-zcNQHAiRg~~"; + X-APPLE-WEBAUTH-USER="v=1:s=0:d=1389775224"; X-APPLE-WEBAUTH-VALIDATE="v=1:t=Bw==BST_IAAAAAAABLwIAAAAAGR_8VQRDmdzLmljbG91ZC5hdXRovQB_ABV6RApEPq82ByPdBFIT2DmZ3sFC8ggKtIdGh2jMImZb46kfIUX2uc_ROD-Q9zRcTu3CaDypDuWgeUg3MY3ItAW2jBNKGu0WZxzaDoJI08OqNC8TRuhzLlNWoo_Zlz7N2GqkHUqbWatD93Zn9IP3jmZdcw~~" + Origin: + - https://www.icloud.com + Referer: + - https://www.icloud.com/ + User-Agent: + - Opera/9.52 (X11; Linux i686; U; en) + method: POST + uri: https://p54-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/zones/list + response: + body: + string: '{"reason":"Invalid global session","error":2}' + headers: + Access-Control-Allow-Credentials: + - 'true' + Access-Control-Allow-Origin: + - https://www.icloud.com + Connection: + - keep-alive + Content-Type: + - application/json; charset=UTF-8 + Date: + - Wed, 27 Sep 2023 06:16:12 GMT + Server: + - AppleHttpServer/3faf4ee9434b + Strict-Transport-Security: + - max-age=31536000; includeSubDomains; + Timing-Allow-Origin: + - https://www.icloud.com + X-Apple-Edge-Response-Time: + - '144' + X-Apple-Request-UUID: + - 8a380c5a-b6d0-43fe-87b3-afbb7ef3976e + X-Responding-Instance: + - ckdatabasews:35406301:mr90p54ic-zteg03161601:8807:2325B321:12cc5c1f6299d43fa5927b7fc646265a2abab788 + access-control-expose-headers: + - X-Apple-Request-UUID,X-Responding-Instance,Via + content-length: + - '45' + via: + - xrail:mr47p00ic-qujn01121901.me.com:8301:23R353:grp22,631194250daa17e24277dea86cf30319:5e1914b6f2591bd9101af83211e0c7fa:nlhfd1 + x-apple-user-partition: + - '54' + status: + code: 421 + message: Misdirected Request version: 1 diff --git a/tests/vcr_cassettes/download_live_photos.yml b/tests/vcr_cassettes/download_live_photos.yml index c85411dea..096844d21 100644 --- a/tests/vcr_cassettes/download_live_photos.yml +++ b/tests/vcr_cassettes/download_live_photos.yml @@ -350,7 +350,7 @@ interactions: User-Agent: - Opera/9.52 (X11; Linux i686; U; en) method: POST - uri: https://p53-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/changes/database + uri: https://p53-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/zones/list response: body: string: "{\n \"moreComing\" : false,\n \"syncToken\" : \"AQAAAAAAAwmVf//////////Kd+LphRdKGbpJMSeRX5Td\",\n diff --git a/tests/vcr_cassettes/listing_albums.yml b/tests/vcr_cassettes/listing_albums.yml index f2959da02..1cee4dc46 100644 --- a/tests/vcr_cassettes/listing_albums.yml +++ b/tests/vcr_cassettes/listing_albums.yml @@ -209,7 +209,7 @@ interactions: User-Agent: - Opera/9.52 (X11; Linux i686; U; en) method: POST - uri: https://p38-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/changes/database + uri: https://p38-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/zones/list response: body: string: "{\n \"moreComing\" : false,\n \"syncToken\" : \"AQAAAAAAAwmVf//////////Kd+LphRdKGbpJMSeRX5Td\",\n diff --git a/tests/vcr_cassettes/listing_photos.yml b/tests/vcr_cassettes/listing_photos.yml index 2107ede1a..95f44a56f 100644 --- a/tests/vcr_cassettes/listing_photos.yml +++ b/tests/vcr_cassettes/listing_photos.yml @@ -99,7 +99,7 @@ interactions: User-Agent: - Opera/9.52 (X11; Linux i686; U; en) method: POST - uri: https://p10-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/changes/database + uri: https://p10-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/zones/list response: body: string: "{\n \"moreComing\" : false,\n \"syncToken\" : \"AQAAAAAAAwmVf//////////Kd+LphRdKGbpJMSeRX5Td\",\n diff --git a/tests/vcr_cassettes/listing_photos_bad_filename.yml b/tests/vcr_cassettes/listing_photos_bad_filename.yml index e8684e17b..c19245f23 100644 --- a/tests/vcr_cassettes/listing_photos_bad_filename.yml +++ b/tests/vcr_cassettes/listing_photos_bad_filename.yml @@ -185,7 +185,7 @@ interactions: User-Agent: - Opera/9.52 (X11; Linux i686; U; en) method: POST - uri: https://p10-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/changes/database + uri: https://p10-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/zones/list response: body: string: "{\n \"moreComing\" : false,\n \"syncToken\" : \"AQAAAAAAAwmVf//////////Kd+LphRdKGbpJMSeRX5Td\",\n diff --git a/tests/vcr_cassettes/listing_photos_missing_downloadUrl.yml b/tests/vcr_cassettes/listing_photos_missing_downloadUrl.yml index 2f8361db5..81ef034c2 100644 --- a/tests/vcr_cassettes/listing_photos_missing_downloadUrl.yml +++ b/tests/vcr_cassettes/listing_photos_missing_downloadUrl.yml @@ -99,7 +99,7 @@ interactions: User-Agent: - Opera/9.52 (X11; Linux i686; U; en) method: POST - uri: https://p10-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/changes/database + uri: https://p10-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/zones/list response: body: string: "{\n \"moreComing\" : false,\n \"syncToken\" : \"AQAAAAAAAwmVf//////////Kd+LphRdKGbpJMSeRX5Td\",\n diff --git a/tests/vcr_cassettes/listing_photos_missing_filenameEnc.yml b/tests/vcr_cassettes/listing_photos_missing_filenameEnc.yml index 71f24d8e0..754112a74 100644 --- a/tests/vcr_cassettes/listing_photos_missing_filenameEnc.yml +++ b/tests/vcr_cassettes/listing_photos_missing_filenameEnc.yml @@ -99,7 +99,7 @@ interactions: User-Agent: - Opera/9.52 (X11; Linux i686; U; en) method: POST - uri: https://p10-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/changes/database + uri: https://p10-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/zones/list response: body: string: "{\n \"moreComing\" : false,\n \"syncToken\" : \"AQAAAAAAAwmVf//////////Kd+LphRdKGbpJMSeRX5Td\",\n diff --git a/tests/vcr_cassettes/listing_photos_no_delete.yml b/tests/vcr_cassettes/listing_photos_no_delete.yml index 402a9d5cf..b60f87157 100644 --- a/tests/vcr_cassettes/listing_photos_no_delete.yml +++ b/tests/vcr_cassettes/listing_photos_no_delete.yml @@ -185,7 +185,7 @@ interactions: User-Agent: - Opera/9.52 (X11; Linux i686; U; en) method: POST - uri: https://p10-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/changes/database + uri: https://p10-ckdatabasews.icloud.com/database/1/com.apple.photos.cloud/production/private/zones/list response: body: string: "{\n \"moreComing\" : false,\n \"syncToken\" : \"AQAAAAAAAwmVf//////////Kd+LphRdKGbpJMSeRX5Td\",\n