Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix copystep when run via gpup #55

Merged
merged 2 commits into from
Apr 10, 2017
Merged

Fix copystep when run via gpup #55

merged 2 commits into from
Apr 10, 2017

Conversation

bruderstein
Copy link
Owner

The CopyStep serialisation was using the wrong destination path for recursive directories, and using the wrong flag for validate.

Fixes #52

The CopyStep serialisation was using the wrong destination path for recursive directories, and using the wrong flag for validate.
@bruderstein
Copy link
Owner Author

@chcg did you say you'd left a comment here?

Responding to the comment from the other issue... yes, it would be great to have unit tests (and ideally some integration tests) for all of the installation steps, but there's currently nothing in place for it. We'll need to think about mocking the filesystem, or injecting something to handle the file calls.

I'd like to get this out, and attack unit tests as a separate item - this is a pretty ugly bug.

if (_validate) {
copyElement->SetAttribute(_T("recursive"), _T("true"));
copyElement->SetAttribute(_T("validate"), _T("true"));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just for my understanding, was this issue introduced with

Revision: 91f929d
Author: Dave Brotherstone [email protected]
Date: 08.10.2016 10:29:02
Message:
Set variables for GPUP

Create a psuedo action for GPUP to set all the variables, allows passing configuration (such as the validation URL for the copy step)

Modified: gpup/src/gpup.cpp
Modified: libinstall/include/libinstall/VariableHandler.h
Modified: libinstall/src/CopyStep.cpp
Modified: libinstall/src/InstallStepFactory.cpp
Modified: libinstall/src/VariableHandler.cpp
Modified: pluginManager/src/PluginList.cpp

or never working at all? Thanks for stepping in to this.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missed to hit submit, so it was not visible.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that was it. I recognised it as soon as I saw what was happening in the PluginManagerGpup.xml file.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise the fix looks ok to me.

@bruderstein bruderstein merged commit fb2ea2e into master Apr 10, 2017
@bruderstein bruderstein deleted the fix-copystep branch April 10, 2017 07:46
@chcg
Copy link
Collaborator

chcg commented Apr 10, 2017

Do you think we can do a release now?

@bruderstein
Copy link
Owner Author

Yes, i think this should go out. I wanted to update the version and run some tests on upgrading tonight, then push the list to both locations. I can't do anything more until tonight, but if you can do the version update, that'd be great (no worries if not, I can do it tonight).

@chcg
Copy link
Collaborator

chcg commented Apr 10, 2017

I will do it the version update now. Would else should I do on vacation go out into the sun and get burned ;-)

@bruderstein
Copy link
Owner Author

Whaaa... haha, no leave it, enjoy your vacation! I'll sort it tonight :)

@chcg
Copy link
Collaborator

chcg commented Apr 10, 2017

Already tagged it and created the release, see https://github.com/bruderstein/nppPluginManager/releases/edit/v1.4.5. Already added some description before appveyor was ready, but that is gone now :-(
Reentered the description, you might wan't to have a look at it.

Also added 1.4.5 to the PM list, but don't get it via devlist.

@bruderstein
Copy link
Owner Author

Devlist seems to be working now (i just ticked it and got the 1.4.5 version - it can take a few minutes for the changes to be applied.

Release looks great, thanks.

I've run through a clean install of N++ 7.3.2, updated to 1.4.3, then updated to 1.4.5 and it went smoothly. I'll update the old list so it shows the update directly to Plugin Manager 1.4.5, then after a few days I'll update it so that it only shows the new Plugin Manager, forcing people to update rather than stay on the old version (I don't want to keep maintaining the old list location, although I guess we'll have to for a while)

@bruderstein
Copy link
Owner Author

Done - all updated. It'll take 24 hours or so for the caches to update, so not everyone sees it immediately.

I've also update the list for 1.3.5 (and earlier), so they'll be updated to 1.4.5 directly too.

@chcg Thanks again for your help, enjoy your vacation!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants