KarstenSchulz / yt-issues

Command line tool to retrieve and export issues from YouTrack service
MIT License
7 stars 2 forks source link

Script adding extra /youtrack to urls #9

Open Bemte opened 1 week ago

Bemte commented 1 week ago

Hi Karsten,

first of all, thanks a lot for this project!

I had a small issue with the base URL. You seem to assume that an URL always has the form

https://myserver.intern/youtrack/api/...

In that case, setting YT_URL=https://myserver.intern works, your script adds /youtrack and the rest of the path.

That breaks, however, when you host youtrack in one of the following ways:

https://youtrack.myserver.intern http://192.168.178.123:8080

In these examples, the extra /youtrack added breaks the URL.

I was able to fix it by simply removing the extra /youtrack from all paths defined in ytlib.py, but that is of course not a general solution as it would surely break things in other places.

KarstenSchulz commented 3 days ago

Thanks for the hint, you’re right about that. There should be a general way to configure the URL. I’ll take a look at it (someday).