Closed (fixed)
Project:
HTML Purifier
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Jun 2011 at 14:54 UTC
Updated:
22 Sep 2012 at 20:21 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
fonant commentedI get this too.
Comment #2
stephenrobinson commentedI get:
In the htmlpurifier.module:
$settings['#attached']['js'][] = "$module_path/config-form.js";
but this doesnt exist???
Comment #3
jaroslaw.kaminski commentedI found config-form.js in htmlpurifier 7.x-1.x-dev package. I think author of module forgot about it ;-)
Comment #4
ezyang commentedYeah, it got mysteriously nuked. Restoring...
Comment #5
bike2live commentedRestoring when? It still isn't there. We can grab it from the 7.x-1.x version, but is that the correct code?
Comment #6
salvis@ezyang: Did you forget to push?
Comment #7
rudetrue commentedI also get this error in my watchdog logs.
Comment #8
allan1015 commentedSame here, error in logs
I copied file over from 7.x-1.x - things seem to be working
Comment #9
salvisSeems like ezyang has vanished...
Comment #10
thekevinday commentedWhile restoring he triggered the opening of a wormhole that sucked him into another universe.
Comment #11
prudal commentedGot him =) ... he traveled back into time and landed in 27 Oct 2010!
see http://drupalcode.org/project/htmlpurifier.git/commit/ff99450
Missing config-form.js can be found there.
Comment #12
heddnThe script was restored as of ff9945035fd640a473fd4fb3c8d2e3168550a19a.
Comment #13
salvisPlease post a link into the repository viewer.
Comment #14
heddnhttp://drupalcode.org/project/htmlpurifier.git/commit/ff9945035fd640a473...
Comment #15
salvisInteresting. The active 7.x-2.x-dev is based on the master branch, and the file is not present in the HEAD of the master branch:
http://drupalcode.org/project/htmlpurifier.git/tree/ab71e69ecb06b0e70d40...
The commit that you list is in the 7.x-1.x branch, which was branched off the master branch on 2010-09-28. The maintainer was obviously confused about Git. He abandoned the 7.x-1.x branch on 2010-11-12 — this branch is now irrelevant. It should be removed from the repository to avoid further confusion.
@heddn: What is your mission in this thread? Why are you spreading obvious mis-information? And why are you assigning yourself to a thread that you insist should be closed?
Assigning yourself means "I'm working on this issue and will post a patch or equivalent solution" and it's used to tell everyone else that they should hold off working on the same issue to avoid useless duplicate work. You've made three other bogus assignments to yourself in this queue — please undo these!
#918466-5: Alter hooks on configuration for advanced configuration is the most ridiculous one and for
#1427370-1: Unnecessary variable_set in version check you owe an apology to jcisio who has developed the patch.
Comment #16
heddn@salvis
Whoa there, I'm still learning the ropes about git, queue moderation and working with the community so I appreciate your input. DIdn't mean to ruffle any feathers here. I'll work with @ezyang to fix the issue.
Comment #17
ezyang commentedI'm extremely confused about the repository history post-Git migration.
The 7.x-1.x branch is a parent of the 6.x-2.x branch. What's going on with those commits? Did we lose more commits?
Comment #18
heddnI think I'm going to join the confusion camp... there seems to be plenty of company.
@ezyang, does master have the 7.x-2.x code in it? I made the assumption it did when I create the patch in #16. I think what caused my confusion in the first place is that the git instructions for htmlpurifier only had one 7.x branch and I didn't pay attention to the fact it was for 1.x and not 2.x.
http://drupal.org/project/htmlpurifier/git-instructions
$ git branch -r
origin/5.x-1.x
origin/6.x-1.x
origin/6.x-2.x
origin/7.x-1.x
origin/HEAD -> origin/master
origin/master
Comment #19
salvisI'm not sure what you did on 2010-11-12, but the result is that the commits in the 7.x-1.x branch are not in the master branch, and the current 7.x-2.x-dev package is based on the master branch.
We don't really need to understand what happened. To go forward from here, you should inspect the commits in the 7.x-1.x branch and decide which ones are still relevant and should be applied (from bottom to top) to the master branch. You may be able to do this with git's cherry-pick command, but be prepared to
reset --hardif the result is not as expected.@ezyang:
What makes you write that? The common ancestor of 6.x-2.x and master (and, much later, 7.x-1.x) is b44ea29.
Time progresses upwards in #15. 6.x-2.x was branched off the master branch before ("below") the commit shown at the bottom of the screenshot; its tip is 9e965e8; that's where it ends, so far. 6.x-1.x was branched off the master branch with 558c007.
Comment #20
heddnSo I did a comparison today of master and 7.x-1.x. Here's a run down of what I saw. For the most part it is fairly trivial differences. The exception is in htmlpurifier.module so I've attached a diff report along with my textual analysis. Hopefully this clears up the confusion.
Comment #21
ezyang commentedHello heddn; a file-by-file comparison is not so useful; the idea is we want to cherry pick the missing commits.
Comment #22
ezyang commentedResolved by 'git merge -s ours 7.x-1.x' on master, and then FF'ding 7.x-1.x to the new commit.
Comment #23
ezyang commentedAnd then cherry-picking two commits which were lost in the shuffle. It is too bad Drupal will not let me delete the master branch pointer.
Comment #25
salvisYou can remove all files from the master branch and add just a README.txt file that explains where the code is.
Comment #26
Anonymous (not verified) commentedI've just pulled the 2.x branch via drush this morning, and I'm still experiencing this error. Looking in my sites/all/modules/contrib/htmlpurifier folder, it appears the config-form.js file is once again not present.
Comment #27
salvisIndeed, the -dev version is still on the master branch which has not been updated for 7 months:
There is no 7.x-2.x branch in this repository.
The last commit was made 6 weeks ago in the 7.x-1.x branch, but there's no version or snapshot that would make these efforts available to the public.
Please give me full access rights to this project so that I can fix it for you.
Comment #28
heddnI agree, it would be nice to have all this fixed. I just opened issue #1778334: Cleanup git branches to fix the problem with master and -dev version that you mention. Do you think that it summarizes the problem correctly and provides an easy path to resolution?
Comment #29
salvisYes, that's about it. I thought you were cleaning this up half a year ago...
Comment #30
heddnComment #31
salvisIt looks good now, thanks.