"This Request needs a higher Gitea Version" or "Gitea version > 1.7 required" #519

Closed
opened 2020-06-04 07:04:56 +00:00 by 6543 · 7 comments
Member

Created By: @Renfle

# What do you want to address?

(This step is required; examples are shown below)

  • Bug
  • Feature
  • Suggestion

# Describe your matter briefly

When opening some specific types of files, the error messages appear: "This reguest needs higher gitea version than installed. Please upgrade your instance to the latest version" or "Gitea version greater 1.7 required" "

What did you expect? (Useful when addressing bugs

(This step is optional)

Some additional details (Useful, when we are trying to reproduce a bug)

(This step is optional; an example is shown below)

  • The version of Gitea you are using: 1.12.0+RC1-27-g600bb545f
  • The version of GitNex you are using: 2.5.1/build 251
  • Phone OS version and model: Motorola X4 Android 9 (Patchlevel 01.09.2019)
  • The type of certificate you are using (self-signed, signed): Letsencrypt
  • How you used to log in (via password or token): Token
We would appreciate some screenshots or stacktrace's, but this is also not required.

(Screenshots and stacktrace's can go here)

Thank you for your time.

Created By: @Renfle ## # What do you want to address? (This step is required; examples are shown below) - [X] Bug - [ ] Feature - [ ] Suggestion ## # Describe your matter briefly When opening some specific types of files, the error messages appear: "This reguest needs higher gitea version than installed. Please upgrade your instance to the latest version" or "Gitea version greater 1.7 required" " ##### What did you expect? (Useful when addressing bugs --- _(This step is optional)_ ##### Some additional details (Useful, when we are trying to reproduce a bug) --- _(This step is optional; an example is shown below)_ * The version of **Gitea** you are using: 1.12.0+RC1-27-g600bb545f * The version of **GitNex** you are using: 2.5.1/build 251 * Phone **OS** version and model: Motorola X4 Android 9 (Patchlevel 01.09.2019) * The type of certificate you are using (self-signed, signed): Letsencrypt * How you used to log in (via password or token): Token ##### We would appreciate some screenshots or stacktrace's, but this is also not required. --- _(Screenshots and stacktrace's can go here)_ #### Thank you for your time.
6543 added the
❤️ Support
label 2020-06-04 07:04:56 +00:00
6543 closed this issue 2020-06-04 07:04:56 +00:00
Owner

Hi @Renfle, it maybe related to #517. But can you tell us which type of files throw this error?

Hi @Renfle, it maybe related to #517. But can you tell us which type of files throw this error?
Author
Member

Created By: @Renfle

ok, i did a little more research

in the root directory of the repositories everything works. any file can be opened
gut as soon as I go down one level, the error messages appear.

  • Garten/common.yaml > works as expected

  • Garten/common/common.yaml > error message

  • partdb/startup.php > works

  • partdb/inc/authors.php > error message

  • espeasy/platformio.ini > works

  • espeasy/tools/build_ESPeasy.sh > error message

everthing works via web interface and git (no ssh, only https)

Created By: @Renfle ok, i did a little more research in the root directory of the repositories everything works. any file can be opened gut as soon as I go down one level, the error messages appear. * Garten/common.yaml > works as expected * Garten/common/common.yaml > error message * partdb/startup.php > works * partdb/inc/authors.php > error message * espeasy/platformio.ini > works * espeasy/tools/build_ESPeasy.sh > error message everthing works via web interface and git (no ssh, only https)
Author
Member

Created By: @Renfle

Hi @Renfle, it maybe related to #517. But can you tell us which type of files throw this error?

its the same bug, any file type, only in subfolders

maybe interesting

apache 2.4.48 (Debian) reverse proxy

apache include.conf

 ProxyPassMatch ^/.well-known/ !
 ProxyPass / http://127.0.0.1:3000/
 ProxyPassReverse / http://127.0.0.1:3000/

Created By: @Renfle > Hi @Renfle, it maybe related to #517. But can you tell us which type of files throw this error? its the same bug, any file type, only in subfolders maybe interesting apache 2.4.48 (Debian) reverse proxy apache include.conf ``` ProxyPassMatch ^/.well-known/ ! ProxyPass / http://127.0.0.1:3000/ ProxyPassReverse / http://127.0.0.1:3000/ ```
Author
Member

Created By: @Renfle

I noticed something about my reading of the Apache log files.
this is a working request

[30/May/2020:18:38:47 +0200] "GET /api/v1/repos/renfle/Garten/contents/README.md HTTP/1.1" 200 5770 "-" "okhttp/4.5.0"

[Sat May 30 18:38:47.691304 2020] [proxy_fcgi:debug] [pid 3587] mod_proxy_fcgi.c(1024): [client 91.2.99.193:41304] AH01077: declining URL http://127.0.0.1:3000/api/v1/repos/renfle/Garten/contents/README.md
[Sat May 30 18:38:47.691325 2020] [proxy:debug] [pid 3587] proxy_util.c(2316): AH00942: HTTP: has acquired connection for (127.0.0.1)
[Sat May 30 18:38:47.691356 2020] [proxy:debug] [pid 3587] proxy_util.c(2369): [client 91.2.99.193:41304] AH00944: connecting http://127.0.0.1:3000/api/v1/repos/renfle/Garten/contents/README.md to 127.0.0.1:3000
[Sat May 30 18:38:47.691490 2020] [proxy:debug] [pid 3587] proxy_util.c(2578): [client 91.2.99.193:41304] AH00947: connected /api/v1/repos/renfle/Garten/contents/README.md to 127.0.0.1:3000
[Sat May 30 18:38:47.691870 2020] [proxy:debug] [pid 3587] proxy_util.c(3047): AH02824: HTTP: connection established with 127.0.0.1:3000 (127.0.0.1)
[Sat May 30 18:38:47.691925 2020] [proxy:debug] [pid 3587] proxy_util.c(3215): AH00962: HTTP: connection complete to 127.0.0.1:3000 (127.0.0.1)
[Sat May 30 18:38:47.740089 2020] [proxy:debug] [pid 3587] proxy_util.c(2331): AH00943: http: has released connection for (127.0.0.1)
May 30 18:38:47 server gitea[6665]: [Macaron] 2020-05-30 18:38:47: Started GET /api/v1/repos/renfle/Garten/contents/README.md for 91.2.99.193
May 30 18:38:47 server gitea[6665]: [Macaron] 2020-05-30 18:38:47: Completed GET /api/v1/repos/renfle/Garten/contents/README.md 200 OK in 47.5

this fails

[30/May/2020:18:40:04 +0200] "GET /api/v1/repos/renfle/Garten/contents/common%!F(MISSING)common.yaml HTTP/1.1" 404 4890 "-" "okhttp/4.5.0"

[Sat May 30 18:40:02.635371 2020] [proxy:debug] [pid 3707] proxy_util.c(2316): AH00942: HTTP: has acquired connection for (127.0.0.1)
[Sat May 30 18:40:02.635391 2020] [proxy:debug] [pid 3707] proxy_util.c(2369): [client 91.2.99.193:41312] AH00944: connecting http://127.0.0.1:3000/api/v1/repos/renfle/Garten/contents/common to 127.0.0.1:3000
[Sat May 30 18:40:02.635524 2020] [proxy:debug] [pid 3707] proxy_util.c(2578): [client 91.2.99.193:41312] AH00947: connected /api/v1/repos/renfle/Garten/contents/common to 127.0.0.1:3000
[Sat May 30 18:40:02.635695 2020] [proxy:debug] [pid 3707] proxy_util.c(3047): AH02824: HTTP: connection established with 127.0.0.1:3000 (127.0.0.1)
[Sat May 30 18:40:02.635742 2020] [proxy:debug] [pid 3707] proxy_util.c(3215): AH00962: HTTP: connection complete to 127.0.0.1:3000 (127.0.0.1)
[Sat May 30 18:40:02.690516 2020] [proxy:debug] [pid 3707] proxy_util.c(2331): AH00943: http: has released connection for (127.0.0.1)
[Sat May 30 18:40:04.113039 2020] [core:info] [pid 3717] [client 91.2.99.193:41314] AH00026: found %!f(MISSING) (encoded '/') in URI (decoded='/api/v1/repos/renfle/Garten/contents/common/common.yaml'), returning 404
[Sat May 30 18:40:04.113099 2020] [headers:debug] [pid 3717] mod_headers.c(900): AH01503: headers: ap_headers_error_filter()
no entry in logfile
Created By: @Renfle I noticed something about my reading of the Apache log files. this is a working request ``` [30/May/2020:18:38:47 +0200] "GET /api/v1/repos/renfle/Garten/contents/README.md HTTP/1.1" 200 5770 "-" "okhttp/4.5.0" ``` ``` [Sat May 30 18:38:47.691304 2020] [proxy_fcgi:debug] [pid 3587] mod_proxy_fcgi.c(1024): [client 91.2.99.193:41304] AH01077: declining URL http://127.0.0.1:3000/api/v1/repos/renfle/Garten/contents/README.md [Sat May 30 18:38:47.691325 2020] [proxy:debug] [pid 3587] proxy_util.c(2316): AH00942: HTTP: has acquired connection for (127.0.0.1) [Sat May 30 18:38:47.691356 2020] [proxy:debug] [pid 3587] proxy_util.c(2369): [client 91.2.99.193:41304] AH00944: connecting http://127.0.0.1:3000/api/v1/repos/renfle/Garten/contents/README.md to 127.0.0.1:3000 [Sat May 30 18:38:47.691490 2020] [proxy:debug] [pid 3587] proxy_util.c(2578): [client 91.2.99.193:41304] AH00947: connected /api/v1/repos/renfle/Garten/contents/README.md to 127.0.0.1:3000 [Sat May 30 18:38:47.691870 2020] [proxy:debug] [pid 3587] proxy_util.c(3047): AH02824: HTTP: connection established with 127.0.0.1:3000 (127.0.0.1) [Sat May 30 18:38:47.691925 2020] [proxy:debug] [pid 3587] proxy_util.c(3215): AH00962: HTTP: connection complete to 127.0.0.1:3000 (127.0.0.1) [Sat May 30 18:38:47.740089 2020] [proxy:debug] [pid 3587] proxy_util.c(2331): AH00943: http: has released connection for (127.0.0.1) ``` ``` May 30 18:38:47 server gitea[6665]: [Macaron] 2020-05-30 18:38:47: Started GET /api/v1/repos/renfle/Garten/contents/README.md for 91.2.99.193 May 30 18:38:47 server gitea[6665]: [Macaron] 2020-05-30 18:38:47: Completed GET /api/v1/repos/renfle/Garten/contents/README.md 200 OK in 47.5 ``` this fails ``` [30/May/2020:18:40:04 +0200] "GET /api/v1/repos/renfle/Garten/contents/common%!F(MISSING)common.yaml HTTP/1.1" 404 4890 "-" "okhttp/4.5.0" ``` ``` [Sat May 30 18:40:02.635371 2020] [proxy:debug] [pid 3707] proxy_util.c(2316): AH00942: HTTP: has acquired connection for (127.0.0.1) [Sat May 30 18:40:02.635391 2020] [proxy:debug] [pid 3707] proxy_util.c(2369): [client 91.2.99.193:41312] AH00944: connecting http://127.0.0.1:3000/api/v1/repos/renfle/Garten/contents/common to 127.0.0.1:3000 [Sat May 30 18:40:02.635524 2020] [proxy:debug] [pid 3707] proxy_util.c(2578): [client 91.2.99.193:41312] AH00947: connected /api/v1/repos/renfle/Garten/contents/common to 127.0.0.1:3000 [Sat May 30 18:40:02.635695 2020] [proxy:debug] [pid 3707] proxy_util.c(3047): AH02824: HTTP: connection established with 127.0.0.1:3000 (127.0.0.1) [Sat May 30 18:40:02.635742 2020] [proxy:debug] [pid 3707] proxy_util.c(3215): AH00962: HTTP: connection complete to 127.0.0.1:3000 (127.0.0.1) [Sat May 30 18:40:02.690516 2020] [proxy:debug] [pid 3707] proxy_util.c(2331): AH00943: http: has released connection for (127.0.0.1) [Sat May 30 18:40:04.113039 2020] [core:info] [pid 3717] [client 91.2.99.193:41314] AH00026: found %!f(MISSING) (encoded '/') in URI (decoded='/api/v1/repos/renfle/Garten/contents/common/common.yaml'), returning 404 [Sat May 30 18:40:04.113099 2020] [headers:debug] [pid 3717] mod_headers.c(900): AH01503: headers: ap_headers_error_filter() ``` ``` no entry in logfile ```
Owner

That's interesting. The problem is coming from %2F.

Can you add this AllowEncodedSlashes On in httpd.conf and try.

That's interesting. The problem is coming from `%2F`. Can you add this `AllowEncodedSlashes On` in httpd.conf and try.
Author
Member

Created By: @Renfle

I have just changed the relevant include file

/var/www/XXXXXX/conf/include.conf

 ProxyPassMatch ^/.well-known/ !
 AllowEncodedSlashes On
 ProxyPass / http://127.0.0.1:3000/
 ProxyPassReverse / http://127.0.0.1:3000/

Now the error message is gone and the file opens.

[Sat May 30 19:58:26.818227 2020] [proxy:debug] [pid 12178] proxy_util.c(2316): AH00942: HTTP: has acquired connection for (127.0.0.1)
[Sat May 30 19:58:26.818251 2020] [proxy:debug] [pid 12178] proxy_util.c(2369): [client 91.2.99.193:42552] AH00944: connecting http://127.0.0.1:3000/api/v1/repos/renfle/Garten/contents/common/common.yaml to 127.0.0.1:3000
[Sat May 30 19:58:26.818391 2020] [proxy:debug] [pid 12178] proxy_util.c(2578): [client 91.2.99.193:42552] AH00947: connected /api/v1/repos/renfle/Garten/contents/common/common.yaml to 127.0.0.1:3000
[Sat May 30 19:58:26.818582 2020] [proxy:debug] [pid 12178] proxy_util.c(3047): AH02824: HTTP: connection established with 127.0.0.1:3000 (127.0.0.1)
[Sat May 30 19:58:26.818636 2020] [proxy:debug] [pid 12178] proxy_util.c(3215): AH00962: HTTP: connection complete to 127.0.0.1:3000 (127.0.0.1)
[Sat May 30 19:58:26.861673 2020] [proxy:debug] [pid 12178] proxy_util.c(2331): AH00943: http: has released connection for (127.0.0.1)
 TLSv1.2 - - [30/May/2020:19:58:26 +0200] "GET /api/v1/repos/renfle/Garten/contents/common%!F(MISSING)common.yaml HTTP/1.1" 200 5910 "-" "okhttp/4.5.0"
 TLSv1.2 - - [30/May/2020:20:04:32 +0200] "GET /api/v1/repos/renfle/espeasy/contents/docs%!F(MISSING)source%!F(MISSING)ESPEasy%!F(MISSING)FunctionBlocks.rst HTTP/1.1" 200 5995 "-" "okhttp/4.5.0"

luckily I still allow TLSv1.2, otherwise it would have been interesting.

just a quick question.
why do you use the normal slash and the encoded variant in the url?

Created By: @Renfle I have just changed the relevant include file /var/www/XXXXXX/conf/include.conf ``` ProxyPassMatch ^/.well-known/ ! AllowEncodedSlashes On ProxyPass / http://127.0.0.1:3000/ ProxyPassReverse / http://127.0.0.1:3000/ ``` Now the error message is gone and the file opens. ``` [Sat May 30 19:58:26.818227 2020] [proxy:debug] [pid 12178] proxy_util.c(2316): AH00942: HTTP: has acquired connection for (127.0.0.1) [Sat May 30 19:58:26.818251 2020] [proxy:debug] [pid 12178] proxy_util.c(2369): [client 91.2.99.193:42552] AH00944: connecting http://127.0.0.1:3000/api/v1/repos/renfle/Garten/contents/common/common.yaml to 127.0.0.1:3000 [Sat May 30 19:58:26.818391 2020] [proxy:debug] [pid 12178] proxy_util.c(2578): [client 91.2.99.193:42552] AH00947: connected /api/v1/repos/renfle/Garten/contents/common/common.yaml to 127.0.0.1:3000 [Sat May 30 19:58:26.818582 2020] [proxy:debug] [pid 12178] proxy_util.c(3047): AH02824: HTTP: connection established with 127.0.0.1:3000 (127.0.0.1) [Sat May 30 19:58:26.818636 2020] [proxy:debug] [pid 12178] proxy_util.c(3215): AH00962: HTTP: connection complete to 127.0.0.1:3000 (127.0.0.1) [Sat May 30 19:58:26.861673 2020] [proxy:debug] [pid 12178] proxy_util.c(2331): AH00943: http: has released connection for (127.0.0.1) ``` ``` TLSv1.2 - - [30/May/2020:19:58:26 +0200] "GET /api/v1/repos/renfle/Garten/contents/common%!F(MISSING)common.yaml HTTP/1.1" 200 5910 "-" "okhttp/4.5.0" ``` ``` TLSv1.2 - - [30/May/2020:20:04:32 +0200] "GET /api/v1/repos/renfle/espeasy/contents/docs%!F(MISSING)source%!F(MISSING)ESPEasy%!F(MISSING)FunctionBlocks.rst HTTP/1.1" 200 5995 "-" "okhttp/4.5.0" ``` luckily I still allow TLSv1.2, otherwise it would have been interesting. just a quick question. why do you use the normal slash and the encoded variant in the url?
Owner

Great. 👍

It shuould work with TLSv1.3 too. You can try and let us know if you have problems with it.

In the mean time I will close this issue.

Great. :+1: It shuould work with TLSv1.3 too. You can try and let us know if you have problems with it. In the mean time I will close this issue.
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gitnex/GitNex#519
No description provided.