Coder Social home page Coder Social logo

Comments (3)

yuriiurshuliak avatar yuriiurshuliak commented on July 19, 2024

The bug was partially reproduced. Follow these steps to reproduce:

  • Create a new track without a description.
  • Add a description to the track.
  • Attempt to edit this description; editing is not possible.
  • Toggle the display of the track on the map off and then on again.
  • Check the description; you should now be able to edit it.
  • Edit the description and repeat the process of toggling the track display on and off.
  • Review the track description again.

As a result, the original description will be displayed instead of the edited one.

OsmAnd~ 4.8.0#2318m, released: 2024-05-16

video_2024-05-16_18-37-16.mp4

from osmand.

sonora avatar sonora commented on July 19, 2024

@vshcherb Caused by 0ef5334.

When we now first write a description, it goes to the osmand:desc extension. Is then shifted to metadata:desc, and later read from there. But upon an edit the new version again goes to the osmand:desc extension, leaving the value in metadata:desc untouched.

Problem is e.g. here

gpx.metadata.getExtensionsToWrite().put("desc", editedText);

  • EDIT: This PR #19888 fixes at least the issue of Description edits being saved to the wrong field. I have merged as a hotfix.
  • But there is a remaining issue that if a user has a GPX file which has both metadata:desc and osmand:desc present, we do not display the latter. (Such files were produced by e.g. the buggy v4.7.17 Desc-Edit functionality, or users may have directly file-edited GPX files, or perhaps also by having a 3rd party GPX with a description already present and there having used an OsmAnd <=v4.7.16's Description-Edit function.)

from osmand.

sonora avatar sonora commented on July 19, 2024

@vshcherb Perhaps here

we should concatenate desc and readDescription rather than filtering a shift action to cases where desc is empty, like in this PR #19900?

I have interim merged this as an urgent fix because as of before every track in this condition upon a user editing the description did actually lose data.

from osmand.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.