hotosm / tasking-manager

Tasking Manager - The tool to team up for mapping in OpenStreetMap
https://wiki.openstreetmap.org/wiki/Tasking_Manager
BSD 2-Clause "Simplified" License
509 stars 275 forks source link

Updating host metadata field for OSM changeset #6318

Open matkoniecz opened 7 months ago

matkoniecz commented 7 months ago

Describe the bug I tried to open https://tasks.hotosm.org/projects/16145/map/ - tasking manager failed with unclear message

To Reproduce Steps to reproduce the behavior:

  1. Go to https://tasks.hotosm.org/projects/16145/map/

Expected behavior

Page works

Screenshots

screen04

Desktop (please complete the following information):

Additional context I wanted to raise problem with https://www.openstreetmap.org/changeset/149537978 https://www.openstreetmap.org/changeset/149536867

matkoniecz commented 7 months ago

Oh, and using "contact us" fails. After filling form it fails to submit with "Please provide a valid value for field 'Summary'" and no clear info what is invalid with current contents.

screen05

matkoniecz commented 7 months ago

Confusingly https://tasks.hotosm.org/projects/16145 works

Maybe whatever put host changeset tag in https://www.openstreetmap.org/changeset/149537978 is wrong?

Is it also tasking manager?

martien-176 commented 7 months ago

I tested with several random project urls.

The issue "An error occurred" seems to happen with all project urls that end on /map/

After removing the /map/ part the url works.

matkoniecz commented 7 months ago

I wonder then: has it ever worked before?

Is it supposed to have some effect? Is this linked from somewhere from TM site?

What put such link into that changeset?

martien-176 commented 7 months ago

I found this "error occurred" message also happening after clicking the "Contribute" button on the project home page. See animated gif. error-occurred

ramyaragupathy commented 6 months ago

@royallsilwallz - https://tasks.hotosm.org/projects/16145/map is a valid url that's generated from any of the workflow? when I hit contribute it takes to https://tasks.hotosm.org/projects/16145/tasks. How did we get the https://tasks.hotosm.org/projects/16145/map url in the first place?

cc @manjitapandey

matkoniecz commented 6 months ago

It is in changeset tags in https://www.openstreetmap.org/changeset/149537978 and https://www.openstreetmap.org/changeset/149536867

manjitapandey commented 6 months ago

@royallsilwallz - https://tasks.hotosm.org/projects/16145/map is a valid url that's generated from any of the workflow? when I hit contribute it takes to https://tasks.hotosm.org/projects/16145/tasks. How did we get the https://tasks.hotosm.org/projects/16145/map url in the first place?

cc @manjitapandey

We can go to this URL after locking any tasks in TM. But the URL is not complete, It should be followed by editor used. Example of whole URL comes something like https://tasks.hotosm.org/projects/16511/map/?editor=ID#background=Bing&map=16.00/-12.3024/33.8763 or https://tasks.hotosm.org/projects/16511/map/?editor=JOSM

Steps to reach to this URL

ramyaragupathy commented 6 months ago

@manjitapandey @royallsilwallz - In that case we need to update the host field in changeset comment.

matkoniecz commented 6 months ago

Would it be possible to add also redirect so already added links will work?

kresp0 commented 5 months ago

We are experiencing the same error on the TM for the Spanish OSM Community (tareas.openstreetmap.es). We are using TM v4.7.0.

Trying to access any of the oldest projects produce that error: https://tareas.openstreetmap.es/explore?orderBy=id&orderByType=ASC

But the newer ones load correctly: https://tareas.openstreetmap.es/explore?orderBy=id&orderByType=DESC

Not sure if it is the same issue, as the error happens with and without the "/map".