p2-browser icon indicating copy to clipboard operation
p2-browser copied to clipboard

"Save As..." button opens a "Open" dialog

Open andham opened this issue 12 years ago • 1 comments

When browsing a P2 repo and clicking the Save As... button, a dialog pop-ups with the header "Open". And there is no way of specifying a name of what to save. When clicking Cancel in that dialog I get an error message saying a NPE occurred.

This is on Mac OS 10.7.4 with Apple Java 1.6.0_31. I started the P2 Browser through web start (the link in the GitHub readme).

andham avatar May 25 '12 06:05 andham

This is currently messed up. There are two save-as actions, one invoked from right-click menu and another with the button.

The right-click action lets you save save selected IUs and their corresponding artifacts to a local "simple" p2 repository. This action is likely broken when current selection includes repository nodes.

The button action writes selected repository metadata to a local directory. IIRC, the target directory has to be empty. Again, the action will likely misbehave if current selection is not a single repository node.

ifedorenko avatar May 25 '12 13:05 ifedorenko