MAUI: Persisting access to Nextcloud files via the file picker in connection with an iOS File Provider - maui

I have currently the problem specially on iOS, that when I select a file through the FilePicker, which is located in Nextcloud and integrated in the file manager through the file provider, I get a shared path to the file. The access is now possible to the file.
However, if I now save the path and want to access it when I restart the application, this is no longer possible. I ran this on a local device.
Access to the path'/private/var/mobile/Containers/Shared/AppGroup/XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX/File Provider Storage/abcd.../test.xyz' is denied.
I couldn't figure it out from the documentation at apple.
https://developer.apple.com/documentation/fileprovider
Is the selected file only temporarily accessible? How can I permanently access e.g. a file in nextcloud via FilePicker without implement a WebDAV client to the app and constantly kept up to date the selected file?
With Android, as far as I have read, a permanent copy of the file is created, and access to the file also works when the application is restarted. Here, however, there is the problem that the file is not updated.

The permission checks and requests are automatically handled by .NET MAUI. But, when you use the FilePicker, you need to enable the iCloud capabilities.
For how to enable the capabilities, you could check the MS docs. https://learn.microsoft.com/en-us/dotnet/maui/ios/deployment/entitlements

Related

Changing the appearance and user authentication in Owncloud

I installed owncloud 10.0.8 on centos 7 and everything went well. Since I needed user authentication via Active Directory I installed “LDAP Integration” from the market and suddenly the background and the name change to “Custom Cloud”. Now despite changing the background file and some change in “/lib/private/legacy/defaults.php” file nothing changes.
What should I do to apply my changes and what is “Custom Cloud”?
Is it correct to use “LDAP Integration” app for user authentication via Active Directory ?
Regards
Not sure about Owncloud. In Nextcloud the theming can be easily done in the webui and LDAP is already included. Nextcloud is faster and has a lot more features and is fully open source. So I suggest that you try this instead.

What Permissions does a user need to upload content into AEM Mobile Cloud service from AEM

I have setup a package that I built on an AEM author instance running on my local machine. I have it connecting to the AEM Mobile on demand cloud service.
When I have my package uploaded to a hosted AEM author instance, where I am not able to log in as admin. When I load the mobile project I see an error that the cloud config path does not exist. And I also don't see the 'Upload Shared Resources' button and can't upload articles.
What paths and permissions on those paths does my user need to fix this?
I was able to track down the paths and the permissions needed on those paths.
For the cloud config does not exist error the user needs
read access to the cloud config path: /etc/cloudservices/dps2015
In order to upload the user needs
read access to /etc/contentsync
and
read, write, create, delete access to /var/contentsync
and
read access to /var

Changes in Windows Azure web role via remote desktop are not propagating

I have deployed a web role on Windows Azure. It runs on one instance only. I set up the remote desktop to access it.
At the moment I need to change only two lines in a JavaScript file in the website.
I connected to the instance then ...
navigated to the E:\approot\Scripts
opened the target file, edited it
Changes didn't propagate. (I download the old content)
Then I tried to
Stop the IIS in web role
Edit the file
Start the IIS again
Changes didn't propagate (When I open the file in the RD I see my new content, but when open via http I see the old content)
Then I tried
Opened RD
Navigated to the file and edited it
Rebooted the instance via Windows Azure control panel
Again connected to RD
I still see the old content in the remote server
My question is what I should do in order to change only one file without redeploying the whole package?
My guess is you're editing the wrong location. Look in e:\sitesroot\0 (or something like that). When in doubt, open the IIS config UI and find out exactly where the website content lives.
EDIT: But as Dennis pointed out, changes you make this way don't persist, so use this only for testing.
I have had this work before, but there problems with this type of change. If something happened to the hardware you are running on and your instance needed to be 'healed', it will only be created from the package you uploaded. Azure does not know about the file edits you have made via RD.
There is not a way to make a single file change in side of a cloud service right now, but with the new Azure web site functionality it is just a git push or tfs push away.
You should be able to do a web deploy by right clicking on your website project (not the azure role project). This will only deploy files which have changed to the active instance. I believe there is a setting in your azure deployment profile (next to the remote desktop one) to enable this.
As noted in other answers these changes are lost should azure need to recreate or provision additional instances. Still, it is a great way to make incremental changes for development.

hidden (?) files

I'm writing an app that includes a folder/file explorer. That part is working. However, another app (Astro File Manager) has the ability to backup all of the installed apps to a backup location on the SD card. I cannot find or see the folder(s) where installed apps are stored. Supposedly it is in "/data/apps". My phone is NOT rooted and Astro works fine. Does anyone know what the trick is to seeing these folders/files? Is it possible to do this in B4A? Thanks!
Android doesn't allow you to access other programs files. Astro probably uses the backup API that allows you to backup other programs. However the backup API doesn't give you access to the files.

Deploy WPF ClickOnce .application File as .EXE

I've developed a WPF application. A large company is trying to make my application available to users' desktops. The traditional way to do this would be to point the users' browsers to:
http://www.MySite.com/MyApp.application
But the I.T. group at this company has configured their proxy server in such a way so as to block .application files for security reasons. They do, however, allow .exe files to pass through their proxy server and execute on client workstations. The irony of allowing .exe's from the Internet while blocking .application text files "for security reasons" isn't wasted on me but let's put that aside for a moment.
What kind of workaround would you recommend that would allow my app to launch from client desktops given that .EXEs are allowed? My first thought is to write a mini launcher app that does nothing more than download a .zip'd version of the .application file and all dependencies to a temp folder on the user's machine and then launch the .application file from there. Is there a better solution?
FWIW: Google has figured out a way to deploy their Chrome browser to Windows desktops in corporations like this one, despite the fact that ClickOnce is their deployment mechanism. If you view the source code at:
http://www.google.com/chrome/thankyou.html?&oneclickinstalled=
...you'll see they're pointing to an installer at:
/update2/installers/clickonce/GoogleInstaller_en.application.
That's a clickonce file. But somehow they've figured out a way to wrap it in an .exe in order to bypass proxy restrictions on .application files. I not familiar enough with JScript to understand what they're doing but it works. I'm trying to emulate this behavior for my own app.
This may not work for your situation. However, one possibility is to xcopy your exe and any dependencies to a folder on your webserver. Add a link in a webpage to your exe so your users can launch the app by clicking the link. In order for any of the users to be able to run the exe the first time, a caspol script needs to be run on each user machine to allow your app to run. Whenever you update the app, just xcopy the new version to the same folder on the webserver.