Bug 267006 - [Patch] Validation of Patch Root on Local diff wizard
Summary: [Patch] Validation of Patch Root on Local diff wizard
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Compare (show other bugs)
Version: 3.5   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Compare-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 71374
  Show dependency tree
 
Reported: 2009-03-04 07:21 EST by Tomasz Zarna CLA
Modified: 2009-03-30 07:47 EDT (History)
4 users (show)

See Also:


Attachments
Patch_v1 (7.72 KB, patch)
2009-03-23 10:55 EDT, Kacper Zdanowicz CLA
no flags Details | Diff
Fix v02 (8.29 KB, patch)
2009-03-30 07:30 EDT, Szymon Brandys CLA
no flags Details | Diff
Fix v02 with changes (8.51 KB, patch)
2009-03-30 07:45 EDT, Szymon Brandys CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tomasz Zarna CLA 2009-03-04 07:21:39 EST
branch_20090126_LocalDiff

Is there any particular reason why we validate patch root provided manually in the create local diff wizard? Currently, only existing paths are accepted. This doesn't allow us to ignore leading path segments which was, correct me if I'm wrong, the main reason behind this option.
Comment 1 Szymon Brandys CLA 2009-03-18 08:00:48 EDT
Since it's a blocker of bug 71374, my questions is when the fix will be ready.
Comment 2 Kacper Zdanowicz CLA 2009-03-18 13:17:31 EDT
So, just to clear things out, 

we don't need patch root's validation, because we want to be able to enter a path, which may be outside of the current workspace. 

And the correct behaviour of patch root is described in bug 267003, right ?
Comment 3 Szymon Brandys CLA 2009-03-19 07:13:03 EDT
(In reply to comment #2)
> So, just to clear things out, 
> 
> we don't need patch root's validation, because we want to be able to enter a
> path, which may be outside of the current workspace. 
> 
> And the correct behaviour of patch root is described in bug 267003, right ?
> 

In bug 267003, I described a case when we can't continue using the suggested value. That's weird.

I think that we should allow to continue even using a path to a location outside the workspace or paths like "Local history:...". In such cases I would expect a warning/info in the wizard header though.

Comment 4 Kacper Zdanowicz CLA 2009-03-23 10:55:48 EDT
Created attachment 129605 [details]
Patch_v1

Patch resolving issue.

> In such cases I would
> expect a warning/info in the wizard header though.

Warning added if patch root is outside the workspace or is not a valid path.
Comment 5 Szymon Brandys CLA 2009-03-30 07:30:55 EDT
Created attachment 130227 [details]
Fix v02
Comment 6 Szymon Brandys CLA 2009-03-30 07:45:22 EDT
Created attachment 130229 [details]
Fix v02 with changes

I found more issues with your Patch_v1. I fixed some of them in my latest fix. I think that you should look carefully at the code and remove at least all the warnings.

There is another bug for refactoring raised by Tomasz. I hope that the fix for it will cover warnings too.
Comment 7 Szymon Brandys CLA 2009-03-30 07:47:13 EDT
Released to the branch_20090126_LocalDiff.