Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2384] Android: 'url' attribute of activity element (tiapp.xml) gets wiped out when "save changes" clicked in TiDev project Edit screen

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:58:57.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0 M02
ComponentsAndroid
Labelsandroid, defect, developer, titanium
ReporterBill Dawson
AssigneeBill Dawson
Created2011-04-15T03:18:19.000+0000
Updated2011-04-17T01:58:57.000+0000

Description

Code in Titanium Developer is wiping out the url parameter of our JS-based activities declared in tiapp.xml. Video of behavior:

http://screencast.com/t/RTdw9NGM0xpe">http://screencast.com/t/RTdw9NGM0xpe

Problem is in https://github.com/appcelerator/titanium_developer/blob/62b74ffdc8ec242d67c452e1c46b539f54358c56/Resources/modules/project_edit/js/project_edit.js#L392"> this block of code in Titanium Developer:

https://github.com/appcelerator/titanium_developer/blob/62b74ffdc8ec242d67c452e1c46b539f54358c56/Resources/modules/project_edit/js/project_edit.js#L392"> https://github.com/appcelerator/titanium_developer/blob/62b74ffdc8e...

It wipes out any line that it sees that contains the string 'url' in it, and replaces it with the url element that contains the url of the "publisher". Similar thing happens if the string 'copyright' is in there.

If we can't release a new Titanium Developer with 1.5, then we need to do something about this outside of Developer, such as change the Javascript Activity's 'url' parameter to 'path' or something like that.

Comments

  1. Bill Dawson 2011-04-15

    Hmm, auto-comments (the bot) don't seem to work from Ti Dev, at least not in this case. The commit was done several hours ago:

    https://github.com/appcelerator/titanium_developer/commit/7d5eaf7817219773f9f8534fd827aee22a9d0b7c"> https://github.com/appcelerator/titanium_developer/commit/7d5eaf781...

  2. Don Thorp 2011-04-15

    G1 (1.6) G2(2.2) RC2 - verified using the Service test which has the url parameter.

JSON Source