Skip to content

Conversation

@MorrisJobke
Copy link
Member

(e.g. null or "0") and actively cast it to a boolean

This was the error message that we have seen:

Argument 1 passed to OC\\Share20\\Share::setSendPasswordByTalk() must be of the type boolean, null given, called in apps/sharebymail/lib/ShareByMailProvider.php on line 981

Was added @danxuliu via dd0c5e2 (password via talk)

…0") and actively cast it to a boolean

This was the error message that we have seen:

```
Argument 1 passed to OC\\Share20\\Share::setSendPasswordByTalk() must be of the type boolean, null given, called in apps/sharebymail/lib/ShareByMailProvider.php on line 981
```

Signed-off-by: Morris Jobke <[email protected]>
@MorrisJobke
Copy link
Member Author

I could only reproduce this by placing $data['password_by_talk'] = null; in the line right before. I suspect that the migration didn't covered this case.

https://github.com/nextcloud/server/pull/10238/files#diff-0986885aed4a130da616405d502cd70cR42

We maybe should look into this. For me it worked fine with '0' as a value in there even without the fix.

@MorrisJobke
Copy link
Member Author

We maybe should look into this. For me it worked fine with '0' as a value in there even without the fix.

Same after an upgrade from 13 to 14.

Copy link
Member

@rullzer rullzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure.

@rullzer rullzer merged commit 78589a2 into master Oct 13, 2018
@rullzer rullzer deleted the bugfix/noid/fix-password_by_talk-not-a-boolean branch October 13, 2018 09:10
@MorrisJobke
Copy link
Member Author

Backport is in #11851

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants