Bug 425004 - https://projects.kde.org/api/v1 defunct, breaks 'tarme.rb'
Summary: https://projects.kde.org/api/v1 defunct, breaks 'tarme.rb'
Status: RESOLVED NOT A BUG
Alias: None
Product: releaseme
Classification: Developer tools
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Gentoo Packages Linux
: NOR major
Target Milestone: ---
Assignee: Harald Sitter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-08-04 15:13 UTC by Thomas Fischer
Modified: 2020-08-04 21:04 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Fischer 2020-08-04 15:13:44 UTC
Ruby script tarme.rb used to build tar balls invokes code that makes HTTP requests to some location under https://projects.kde.org/api/v1/

However, this server is now defunct and mostly redirects to invent.kde.org. API calls no longer work.

Example:

$ ./tarme.rb --origin stable --version 0.9.81 projects-invent/office/kbibtex
           !! Make sure to read the wiki :) !!
     https://community.kde.org/ReleasingSoftware
https://projects.kde.org/api/v1/project/projects-invent/office/kbibtex
Traceback (most recent call last):
        11: from ./tarme.rb:78:in `<main>'
        10: from /home/thomas/git/releaseme/lib/releaseme/project.rb:189:in `from_find'
         9: from /home/thomas/git/releaseme/lib/releaseme/project.rb:206:in `from_path'
         8: from /home/thomas/git/releaseme/lib/releaseme/projects_api.rb:127:in `get'
         7: from /home/thomas/git/releaseme/lib/releaseme/projects_api.rb:86:in `get'
         6: from /usr/lib64/ruby/2.5.0/open-uri.rb:735:in `open'
         5: from /usr/lib64/ruby/2.5.0/open-uri.rb:165:in `open_uri'
         4: from /usr/lib64/ruby/2.5.0/open-uri.rb:224:in `open_loop'
         3: from /usr/lib64/ruby/2.5.0/open-uri.rb:224:in `catch'
         2: from /usr/lib64/ruby/2.5.0/open-uri.rb:226:in `block in open_loop'
         1: from /usr/lib64/ruby/2.5.0/open-uri.rb:755:in `buffer_open'
/usr/lib64/ruby/2.5.0/open-uri.rb:377:in `open_http': 500 Internal Server Error (OpenURI::HTTPError)

Running off commit 93531165e4f3327e25190a3 on Gentoo Linux, using Ruby 2.5.8p224 (2020-03-31 revision 67882) [x86_64-linux].
Comment 1 Harald Sitter 2020-08-04 15:37:14 UTC
I believe you want office/kbibtex as path
Comment 2 Thomas Fischer 2020-08-04 21:04:18 UTC
(In reply to Harald Sitter from comment #1)
> I believe you want office/kbibtex as path
Indeed, the path was wrong.

May I recommend to have some sanity checks on the provided paths, such as if it has a depth of equal two or does start with a known-good first element like 'office' or 'education'?