sandbox

Paypal Sandbox recurring payment with initial amount pending

六月ゝ 毕业季﹏ 提交于 2019-12-05 18:16:37
问题 I'm using the PHP library here to create a new subscription profile. If I set an initial amount, the profile appears as "Pending". Example: Pending Customer Mark Wally Verified Profile start date Feb 18, 2013 | Profile ID I-BE824P6F9PER On the other hand, if I set no initial payment amount, the profile will be "Active". I am setting the initial payment and the start date 1 month in the future since I want to bill monthly and get a payment right away. I've already verified: Account is set to

Limiting execution time of embedded Python

空扰寡人 提交于 2019-12-05 15:38:15
问题 If I embed the Python interpreter in a C or C++ program, as in this example, is there any way to limit how long the interpreter runs for? Is there anything to stop the Python code from entering an infinite loop and thus preventing PyObject_CallObject (or equivalent) from ever returning? Similarly, if the Python code creates a new thread, is there anything to stop this thread from entering an infinite loop and running forever? 回答1: As you can see in the docs, PyObject_CallObject has no

Lua Sandbox with special functions which leak

跟風遠走 提交于 2019-12-05 12:57:15
I am trying to use How can I create a secure Lua sandbox? to build my own leaky sandbox. I am trying to create a Lua sandbox where some Lua functions can access some other Lua functions outside the sandbox. For example I want my sandbox to have a special "display" function which can call "print" but not have "print" in the sandbox too. The main problem is that I am trying to build a sandbox within an already large codebase, so I cannot nil away functions. How is this possible? The solution has to be a pure Lua function due to no fault of mine. When you create a sandbox, you do it by cherry

Sandboxed app & NSOpenPanel causes crashes

天涯浪子 提交于 2019-12-05 12:18:37
问题 I am doing a simple file open panel in my Cocoa app. I enable entitlements and app sandboxing. But on OS X 10.9, when the app should open a dialog using NSOpenPanel , it crashes with: Application Specific Information: Terminating app due to uncaught exception 'NSObjectNotAvailableException', reason: 'service com.apple.appkit.xpc.openAndSavePanelService failed to init an instance of NSOpenPanelService on behalf of due to { "proxy-communications-error" = "Error Domain=NSCocoaErrorDomain Code

Check if path under app-scoped bookmark is writable inside sandboxed app

折月煮酒 提交于 2019-12-05 11:06:05
I have an OS X app, which stores an app-scoped bookmark to persist access to certain directories. I am able to write to those directories without any problems, but there is a part in my code where I want to make an extra check to confirm that the path is writable and it fails. var fileManager: NSFileManager = NSFileManager.defaultManager() var baseUrl: NSURL = try! NSURL(byResolvingBookmarkData: data, …) var fileUrl: NSURL = url.URLByAppendingPathComponent("foo.txt") // Changing this order has no effect, I make only the first start access call, // the second one is to demonstrate that it's not

paypal sandbox not working [duplicate]

强颜欢笑 提交于 2019-12-05 08:53:35
This question already has an answer here: Please login to use the PayPal sandbox feature 5 answers I am using the PayPal sandbox to make test payments. It was working fine since last 3-4 months. But I see that they are making changes in sandbox design, ways to manage test email accounts, etc. They have disabled my actual sandbox account and asks me to login using real PayPal account. So I created a new sandbox ( https://developer.paypal.com/ ) account using my PayPal account. I imported test emails from my old sandbox account, and started making test payments. But it didn't work. I deleted all

CFMessagePort and sandboxing

匆匆过客 提交于 2019-12-05 08:25:35
I am adapting a MacOS application to use sandboxing. It uses a helper application (an exe in the same bundle) that fails when I try calling CFMessagePortCreateRemote with a 'deny mach-lookup' message in the console. I can see the com.apple.security.temporary-exception.mach-lookup.global-name entitlement key could solve this, but it is only temporary. Is there a way to achieve a communication between two apps with a mach port in a sandboxed application? Errors: let port = CFMessagePortCreateLocal(nil, "XXXYYYZZZZ.MyAppGroupName" as CFString, Callback, nil, nil) let runLoopSource =

TOpenDialog/NSOpenPanel not working in a sandboxed Delphi app

怎甘沉沦 提交于 2019-12-05 04:51:50
There seems to be a problem with the TOpenDialog in a Firemonkey application, which is sandboxed for the Mac Appstore. I use XE3, but it is also present in XE2. I actually found a QC report here, but it is still unresolved: http://qc.embarcadero.com/wc/qcmain.aspx?d=105344 Has anyone had the same problem, or any ideas how to work around it? It is very easy to check. Just put a TOpenDialog on a form and call the Execute method. Sign and sandbox the application according to the Embarcadero instructions: http://docwiki.embarcadero.com/RADStudio/en/Mac_OS_X_Application_Development When Execute is

Drag Files come across Sandbox(__CFPasteboardIssueSandboxExtensionForPath)

。_饼干妹妹 提交于 2019-12-05 04:29:39
I processed drag operation from browser view to custom view.It work well in snow lepoard,but not in Mountain Lion with sandbox. in browser view: NSMutableArray* urls = [[[NSMutableArray alloc] init] autorelease]; ..............put some NSUrl to urls array.................... [pasteboard writeObjects:[NSArray arrayWithArray:urls]]; in my receive custom view: NSArray* pasteboardItems = [pasteboard readObjectsForClasses:[NSArray arrayWithObject:[NSString class]] options:nil]; NSArray* pasteboardItems2 = [pasteboard readObjectsForClasses:[NSArray arrayWithObject:[NSURL class]] options:nil];

Howto “sandbox” my Lion application?

人走茶凉 提交于 2019-12-05 03:27:39
Apple has decreed that all applications submitted to the Mac App Store must be sandboxed, starting in November. Ok, but how can I "sandbox" my app? I found the official Apple's guide Code Signing And Application Sandboxing Guide . This document lists the following steps: 1) "Enable sandboxing for your application." Ok, easy: I have to open Xcode 4, select the project, select the target, go to the Summary tab and check: "Enable Entitlements" "Enable App Sandboxing" ...and every single entitlement I'm interested in. 2) Then: "Once you have created a basic entitlements profile, you should sign