This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 270470 - In new Full Remote projects files has wrong modification time if local and remote hosts are placed in different time zones
Summary: In new Full Remote projects files has wrong modification time if local and re...
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Remote (show other bugs)
Version: 8.2
Hardware: PC Linux
: P3 normal (vote)
Assignee: Vladimir Kvashin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-24 08:47 UTC by soldatov
Modified: 2017-05-13 02:10 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Prposed patch (5.63 KB, patch)
2017-04-24 15:27 UTC, Vladimir Kvashin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description soldatov 2017-04-24 08:47:29 UTC
I have 2 machines in 2 time zones (PDT and EDT).

Scenario:
- Launch IDE on computer in EDT time zone
- Add new remote host (computer in PDT time zone)
- Create Welcome project in Full Remote mode
- Build project
==> files has different time (about 3 hours)
:~/DevStudioProjects/Welcome_2$ ls -la --full-time welcome.cc 
-rw-r--r--   1 tester staff       1960 2017-04-24 04:33:20.000000000 -0700 welcome.cc
:~/DevStudioProjects/Welcome_2$ ls -la --full-time dist/Debug/OracleDeveloperStudio-Solaris-x86/welcome_2 
-rwxr-xr-x   1 tester staff      77464 2017-04-24 01:33:33.027600163 -0700 dist/Debug/OracleDeveloperStudio-Solaris-x86/welcome_2

In such case Dbx will return this warning:
dbx: warning: File `welcome.cc' has been modified more recently than `welcome_2'
dbx: Creating handler in defunct and disabled mode. You can:
dbx: - Issue the `fix' command.
dbx: - Leave handler as is and rebuild and re-run program.
dbx: - Issue `handler -enable 2' to force the handler anyway.
Comment 1 Vladimir Kvashin 2017-04-24 14:24:11 UTC
The reason is that when zipping (in IDE, in java) and unzipping (on remote, via unzip command) no time zone is specified. So if local and remote time zones differ, we'll get incorrect time for all files. I will fix this shortly.
Comment 2 Vladimir Kvashin 2017-04-24 15:27:49 UTC
Created attachment 164175 [details]
Prposed patch
Comment 3 Vladimir Kvashin 2017-05-12 06:52:56 UTC
fix:
http://hg.netbeans.org/cnd-main/rev/05a97c7d9b3a
spec version upgrade:
http://hg.netbeans.org/cnd-main/rev/77c0c87a91c0
Comment 4 Quality Engineering 2017-05-13 02:10:41 UTC
Integrated into 'main-silver', will be available in build *201705130001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/05a97c7d9b3a
User: Vladimir Kvashin <vkvashin@netbeans.org>
Log: fixed #270470 - In new Full Remote projects files has wrong modification time if local and remote hosts are placed in different time zones