Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

healthcheck fails if apple id has underscore in it #27

Closed
SoulOfNoob opened this issue Sep 3, 2020 · 4 comments
Closed

healthcheck fails if apple id has underscore in it #27

SoulOfNoob opened this issue Sep 3, 2020 · 4 comments

Comments

@SoulOfNoob
Copy link

example:
my apple id format is: firstname_lastname@provider.com
generated cookie file is: firstname_lastnameprovidercom
healthcheck.sh expects firstnamelastnameprovidercom (i checked with a print statement)
therefore the healthcheck fails.

manually renaming the cookie file doesn't help either because it just gets regenerated.

@SoulOfNoob SoulOfNoob changed the title healthcheck fails if apple id has "_" in it healthcheck fails if apple id has underscore _ in it Sep 3, 2020
@SoulOfNoob SoulOfNoob changed the title healthcheck fails if apple id has underscore _ in it healthcheck fails if apple id has underscore in it Sep 3, 2020
@SoulOfNoob
Copy link
Author

SoulOfNoob commented Sep 3, 2020

local quick fix for me: changed regex to include underscore
sync-icloud.sh:13 and healthcheck.sh:19:
changed ${apple_id//[^a-zA-Z0-9]/} to ${apple_id//[^a-zA-Z0-9_]/}

because i couldn't find the reason why the underscore is not filtered at file creation

@boredazfcuk
Copy link
Owner

Hmmmm... This sounds a bit odd to be honest.

I used to have an underscore in my Apple ID, so this did work once upon a time. I had to swap to a non-underscored ID when I setup family safety on my older devices as Apple don't support underscores in the e-mail address used for parent accounts...

However, main sync-icloud.sh script also uses the same parameter expansion to calculate the cookie's filename (line 13).

This is used a lot throughout the script, so if you have an underscore in your address, I'd expect the main script to bomb out too.

Have you changed line 13 of the main script too?

@SoulOfNoob
Copy link
Author

Yes i changed the regex in both files: sync-icloud.sh and healthcheck.sh

I suspect that maybe the core lib changed somehow.
I haven't looked that deep in the other repo after i fixed it for me locally.

@boredazfcuk
Copy link
Owner

Ah, OK cool... I've amended the code so the change will appear when I next push the images to Dockerhub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants