YunoHost-Apps / dolibarr_ynh

Dolibarr ERP & CRM is a modern software to manage your organization's activity. This is an integration of Dolibarr in YunoHost
https://www.dolibarr.org/
GNU Affero General Public License v3.0
12 stars 18 forks source link

Can't use with DoliDroid (Android App) #45

Closed Axehaft closed 3 years ago

Axehaft commented 3 years ago

Yunohost redirects to homepage instead of Dolibarr. I don't totally understand it so I will post what the creator of Dolidroid found:

"When you click on the "search" button, the application call the page https://****.com/dolibarr/core/search_page.php. Because dolidroid is designed to increase performance, page is loaded into another process than the main web page. So already done authentication is not valid and yunohost asks for another authentication login and password.

If you enter it, yunohost should redirect to https://****.com/dolibarr/core/search_page.php but here it redirects to https://****.com/

I'm afraid there is no way to use dolidroid with yunohost until the redirect of yunohost is fixed or removed."

I will ask the creator of Dolidroid watch this issue to see if he can offer any further info.

eldy commented 3 years ago

More information: An android app in a webview is navigating to a website https://xxx/dolibarr/ into different pages. When clicking on a button, tha android app is calling method execute of object DefaultHttpClient to get another url https://xxx/dolibarr/core/search_pages.php

Even if the DefaultHttpClient is using the same header "Cookie" than the webview, yunohost send the yunohost login page. So this is the login page that is shown into the webview. You enter the login and pass but then yunohost redirect the the url https://xxx/ instead of https://xxx/dolibarr/core/search_pages.php Because the initial page requested by DefaultHttpClient was https://xxx/dolibarr/core/search_pages.php, is there a possibility to keep the initial request page save into the login page, so once login, yunohost will redirect to the initial homepage ?

mastereur commented 3 years ago

no activity for 2 months. I don't think the yunohost system will be changed on the connection, so you should rather look at the android application.