Skip to content
This repository has been archived by the owner on Nov 14, 2017. It is now read-only.

Can’t make «class ocid» id «data optr00000000904D70F1EF7F0000» into type integer. (error -1700) #59

Closed
entusdictus opened this issue Apr 5, 2016 · 19 comments
Assignees
Labels
Milestone

Comments

@entusdictus
Copy link

ADPassMon 2.20.19 launches only once per user on multiple machines. First launch is all okay, the second launch produces the following error in console:

05.04.16 13:18:44,455 ADPassMon[13480]: *** -[ADPassMonAppDelegate applicationWillFinishLaunching:]: Can’t make «class ocid» id «data optr00000000904D70F1EF7F0000» into type integer. (error -1700)

@macmule
Copy link
Owner

macmule commented Apr 5, 2016

Odd.

What OS's?

Anything else in the logs?

How was the app packaged & deployed?

@entusdictus
Copy link
Author

I found the reason for this issue. ADPassMon 2.20.19 seems to corrupt the org.pmbuko.adpassmon.plist.
The key expireDateUnix is incorrectly formatted.
expireDateUnix
1,4608736

when you remove the "," from the string, ADPassMon will work again.

@entusdictus
Copy link
Author

OS is 10.11.4, app was packaged with Composer and deployed with the JSS.

@macmule
Copy link
Owner

macmule commented Apr 5, 2016

@entusdictus odd.. What language is the OS running when this happens?

@macmule macmule self-assigned this Apr 5, 2016
@macmule macmule added the bug label Apr 5, 2016
@entusdictus
Copy link
Author

This OS is running in German.

@macmule
Copy link
Owner

macmule commented Apr 12, 2016

Bugger.

AppleScript is pseudo American English. So I think it's having issues with the German localisation.

I'll have a play & will put an update out.

On 5 Apr 2016, at 14:25, entusdictus notifications@github.com wrote:

This OS is running in German.


You are receiving this because you were assigned.
Reply to this email directly or view it on GitHub

@lumaforge
Copy link

Ran into the same localization issue with a Spanish version of OS X and trying to not have it auto-translate the name of the Network Adapter in the System Prefs so it would match what is seen in the 'networksetup' command line program.

@tommywo
Copy link

tommywo commented Jul 8, 2016

I have the same issue on English OSX 10.11.5. Breaking change was introduced between 1498c1d and 43982d7

@macmule
Copy link
Owner

macmule commented Oct 29, 2016

Can you folks run the below & advise what is returned?

echo '(131258737778620155/10000000)-11644473600' | /usr/bin/bc

@tommywo, @entusdictus, @lumaforge

@macmule
Copy link
Owner

macmule commented Oct 29, 2016

@entusdictus, @lumaforge, @tommywo

Can you test the below? I think the issue was with NSNumberFormatter.. I think

ADPassMon.zip

@entusdictus
Copy link
Author

@macmule, the result is:
myuser$ echo '(131258737778620155/10000000)-11644473600' | /usr/bin/bc
1481400177

@macmule
Copy link
Owner

macmule commented Nov 4, 2016

@entusdictus
Copy link
Author

First it seems to work, but when configuring with "manual" settings, the status window will keep the status "Working..."
We have to use the "manual" setting in this environment, because automatic displays a different password runtime (long story short: automatic is technically correct, but customer has a weird construct for their passwords so this cannot be used).

@macmule
Copy link
Owner

macmule commented Nov 4, 2016

@entusdictus thanks! Progress at least :)

I think i know why the "working.." hang is occurring & will look into that shortly

@macmule
Copy link
Owner

macmule commented Nov 4, 2016

@entusdictus I was wrong about the "working..." issue, can you let me know what OS, what language & post the org.pmbuko.adpassmon.plist?

@entusdictus
Copy link
Author

entusdictus commented Nov 7, 2016

OS is 10.12.1 16B2555. Language is German.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>accTest</key>
    <string>0</string>
    <key>allowPasswordChange</key>
    <false/>
    <key>enableNotifications</key>
    <true/>
    <key>expireAge</key>
    <integer>30</integer>
    <key>expireDateUnix</key>
    <string>1484802446</string>
    <key>isBehaviour2Enabled</key>
    <integer>0</integer>
    <key>menu_title</key>
    <string>75d</string>
    <key>selectedBehaviour</key>
    <integer>1</integer>
    <key>selectedMethod</key>
    <integer>1</integer>
    <key>tooltip</key>
    <string>Your password expires
Thu Jan 19 06:07:26 CET 2017</string>
    <key>warningDays</key>
    <integer>7</integer>
</dict>
</plist>

@macmule
Copy link
Owner

macmule commented Nov 7, 2016

@entusdictus
Copy link
Author

@macmule, looks good so far! 👍

@macmule
Copy link
Owner

macmule commented Nov 12, 2016

@entusdictus awesome.. I'll close this off for now :)

@macmule macmule closed this as completed Nov 12, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants