Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xmlrpc: https://github.com/fabienli/DokuwikiAndroid does not work #3621

Open
rozhuk-im opened this issue Feb 5, 2022 · 3 comments
Open

xmlrpc: https://github.com/fabienli/DokuwikiAndroid does not work #3621

rozhuk-im opened this issue Feb 5, 2022 · 3 comments

Comments

@rozhuk-im
Copy link

fabienli/DokuwikiAndroid#12
I have same issue but with local auth.

Here some logging:

POST /wiki/lib/exe/xmlrpc.php HTTP/1.1
Content-Type: text/xml
User-Agent: Apache XML RPC 3.1.3 (Sun HTTP Transport)
Content-Length: 203
Host: ***************
Connection: Keep-Alive
Accept-Encoding: gzip

<?xml version="1.0" encoding="UTF-8"?><methodCall><methodName>dokuwiki.login</methodName><params><param><value>root</value></param><param><value>******************</value></param></params></methodCall>
HTTP/1.1 200 OK
Server: nginx
Content-Type: text/xml;charset=UTF-8
Content-Length: 161
Connection: keep-alive
Keep-Alive: timeout=60
Vary: Cookie
Set-Cookie: DWcb100c0f811c1b6d691e3e7c406b56ba=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; Max-Age=0; path=/wiki/; HttpOnly
Set-Cookie: DokuWiki=6cnp6noibh7o90r9ttjlcngq1h9dgvujnk4l0d0d121udhvee387dogr413u0vm01gf31rga9khtef1udfovisfaaaffe37nf2nr548fms65esrv9eu8af36r243cj68; path=/wiki/; HttpOnly
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Set-Cookie: DWcb100c0f811c1b6d691e3e7c406b56ba=cm9vdA%3D%3D%7C0%7ChmEgyLvjQYakgllFe5vayrpyc0O5MSbFC%2BYUWxbCEnu9sw3zZRjeAKZsieb0Rfe%2B; path=/wiki/; HttpOnly
Date: Sat, 05 Feb 2022 00:48:21 +0000
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block
X-Frame-Options: SAMEORIGIN
Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-inline'; img-src 'self' data:; style-src 'self' 'unsafe-inline'; object-src 'none'; worker-src 'none'
Referrer-Policy: no-referrer
Permissions-Policy: interest-cohort=()

<?xml version="1.0"?>
<methodResponse>
  <params>
    <param>
      <value>
      <boolean>1</boolean>
      </value>
    </param>
  </params>
</methodResponse>

POST /wiki/lib/exe/xmlrpc.php HTTP/1.1
Content-Type: text/xml
User-Agent: Apache XML RPC 3.1.3 (Sun HTTP Transport)
Cookie: DokuWiki=6cnp6noibh7o90r9ttjlcngq1h9dgvujnk4l0d0d121udhvee387dogr413u0vm01gf31rga9khtef1udfovisfaaaffe37nf2nr548fms65esrv9eu8af36r243cj68;DWcb100c0f811c1b6d691e3e7c406b56ba=cm9vdA%3D%3D%7C0%7ChmEgyLvjQYakgllFe5vayrpyc0O5MSbFC%2BYUWxbCEnu9sw3zZRjeAKZsieb0Rfe%2B;
Content-Length: 156
Host: ************
Connection: Keep-Alive
Accept-Encoding: gzip

<?xml version="1.0" encoding="UTF-8"?><methodCall><methodName>wiki.getPageHTML</methodName><params><param><value>index</value></param></params></methodCall>
HTTP/1.1 403 Forbidden
Server: nginx
Content-Type: text/xml;charset=UTF-8
Content-Length: 159
Connection: keep-alive
Keep-Alive: timeout=60
Vary: Cookie
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate
Pragma: no-cache
Date: Sat, 05 Feb 2022 00:48:21 +0000
Permissions-Policy: interest-cohort=()

<?xml version="1.0"?>
<methodResponse>
  <params>
    <param>
      <value>
      <struct>
</struct>
      </value>
    </param>
  </params>
</methodResponse>

Is it DoKuWiKi error or this is App error?

@Klap-in
Copy link
Collaborator

Klap-in commented Feb 7, 2022

I’m sorry, I’m not so known with xmlrpc. The problem is the ‘403 forbidden’?
Could adding some echo debug statements to see in between results help to understand the work flow in DokuWiki?

@rozhuk-im
Copy link
Author

Yes, 403 is a problem.
You can install app from f-droid repo and try it or describe what I should to do to prove more info.
I do not know where and what I should add extra logging to provide more info.
DoKuWiKi is to big project for me, I'm mostly C dev.

@mprins
Copy link
Contributor

mprins commented Feb 7, 2022

#3552 might be related

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants