CDR Tickets

Issue Number 3839
Summary [Summaries] Summary Fragment Refs Not Working in Publish Preview
Created 2014-12-11 09:39:13
Issue Type Bug
Submitted By Juthe, Robin (NIH/NCI) [E]
Assigned To Englisch, Volker (NIH/NCI) [C]
Status Closed
Resolved 2015-06-12 12:46:06
Resolution Fixed
Path /home/bkline/backups/jira/ocecdr/issue.143161
Description

Summary fragment refs pointing to other places in the same document are not working in Publish Preview. For example, the links from the changes section to places in the document where changes were made do not work.

Comment entered 2014-12-11 12:59:55 by Osei-Poku, William (NIH/NCI) [C]

Added myself as a watcher.

Comment entered 2014-12-16 18:43:06 by Englisch, Volker (NIH/NCI) [C]

As part of the WCMS release the HTML had been cleaned up and as part of that some of the IDs that existed in the old HTML document have now changed.

I've fixed the problem on DEV related to the links jumping to locations within the document. I forgot if fragment refs were supposed to work when pointing to other documents as well. With the new HTML output this may not always be achievable as part of the PP report.
The program modified is

  • PublishPreview.py

Comment entered 2014-12-17 11:19:41 by Englisch, Volker (NIH/NCI) [C]

The PublishPreview has been fixed on DEV and is ready for review:

  • R13044: PublishPreview.py

Comment entered 2014-12-18 10:36:09 by Juthe, Robin (NIH/NCI) [E]

I'm getting python errors in Pub Preview on DEV.

A problem occurred in a Python script.

D:\cdr\Log\tmp27lsz_.html contains the description of this error.

A problem occurred in a Python script.

D:\cdr\Log\tmpgg576v.html contains the description of this error.

Comment entered 2014-12-18 10:58:22 by Englisch, Volker (NIH/NCI) [C]

I'm seeing the same error message right now. It appears to be an error coming from Gatekeeper.
I'll let you know when it's OK to test again.

Comment entered 2014-12-18 15:32:32 by Englisch, Volker (NIH/NCI) [C]

The problem on Gatekeeper/Percussion has been fixed. Please try again to review this.

Comment entered 2015-01-22 11:31:48 by Juthe, Robin (NIH/NCI) [E]

Sorry I missed this message. Just tested this on DEV and I'm still getting a Python error:

A problem occurred in a Python script.

D:\cdr\Log\tmpubdoqd.html contains the description of this error.

Comment entered 2015-01-22 11:37:44 by Juthe, Robin (NIH/NCI) [E]

I see that this is in the Mailer Hotfix, so I tried it on QA too. Got a Python error there too:

A problem occurred in a Python script.

D:\cdr\Log\tmptvgt38.html contains the description of this error.

Comment entered 2015-01-23 16:17:00 by Juthe, Robin (NIH/NCI) [E]

Verified on QA.

Comment entered 2015-02-16 09:58:33 by Osei-Poku, William (NIH/NCI) [C]

This does not appear to be working on STAGE.

Comment entered 2015-02-16 16:14:16 by Englisch, Volker (NIH/NCI) [C]

Unfortunately, with the Gatekeeper code on DEV upgraded to the NVCG and the QA server currently not available I'm unable to investigate this in more detail at the moment.
I've looked at the PP output and the version of the PP program but everything appears to be OK on STAGE. I'm afraid this may not be fixed as part of the Mailer hot-fix.

Comment entered 2015-03-04 10:33:51 by Juthe, Robin (NIH/NCI) [E]

Volker,

Do you expect these changes will be promoted with the upcoming security remediation release or the NVCG-related CDR release? Just trying to get an idea of when this will be fixed so I can let everyone know.

Thanks,
Robin

Comment entered 2015-03-04 11:24:11 by Englisch, Volker (NIH/NCI) [C]

I can have a quick look on QA to see what's going on (last time QA wasn't available to check it out) but I'm currently unable to give you an estimate on when this may be fixed.

Comment entered 2015-03-04 19:25:57 by Englisch, Volker (NIH/NCI) [C]

I'm having trouble running PublishPreview on the QA tier at the moment most likely because the DEV and QA tiers are already using the code for NVCG. I'll have to check with Blair or Aarti if a server with the current enrironment is still available for testing.

Comment entered 2015-03-26 13:47:24 by Kline, Bob (NIH/NCI) [C]

Volker's going to check whether this got into Subversion (to explain how it didn't get onto PROD with the rest of the Ampere branch).

Comment entered 2015-05-01 14:41:36 by Kline, Bob (NIH/NCI) [C]

I have confirmed that revision 13044 of /branches/Ampere/Inetpub/wwwroot/cgi-bin/cdr/PublishPreview.py did actually get promoted to production.

Comment entered 2015-05-05 10:39:40 by Englisch, Volker (NIH/NCI) [C]

Bob, did you also confirm that the problem was fixed? One of the problems with this issue was that the fix worked on DEV and QA but not anymore on STAGE. When trying to double-check was was going on using QA the PP on that tier was broken - a result of the servers moving to Shady Grove and changing IP addresses.
I think we need to go back to QA and start over with this ticket. Feel free to assign it to me and I'll take a look. My WCMS load for Egyptian Mau isn't too bad.

Comment entered 2015-05-11 12:11:32 by Juthe, Robin (NIH/NCI) [E]

This does need to be reopened. Summary Frag Refs still aren't working in PP. Thanks for taking a look (when you have time), Volker.

Comment entered 2015-06-11 12:25:52 by Englisch, Volker (NIH/NCI) [C]

I found and fixed the problem with the publish preview. I'm assuming that the last CDR and WCMS releases crossed each other. The HTML coming from Gatekeeper is now slightly different.

Comment entered 2015-06-12 09:42:06 by Beckwith, Margaret (NIH/NCI) [E]

I checked three summaries in PubPreview on Dev and all summary frag refs worked fine. Verified on Dev.

Comment entered 2015-06-12 12:51:14 by Englisch, Volker (NIH/NCI) [C]

We'll have to coordinate our changes to PublishPreview.py so that we don't create a conflict. My changes are very minor and easily redone in case a conflict exists.

By the way, this is how I've disabled the GlossaryTerms in the PP report without removing the looks-like-a-link link:

    for gloss in myHtml.cssselect('a.definition'):
        gloss.set('href', '')
        gloss.set('onclick', 'return false')
Comment entered 2015-06-17 16:53:32 by Kline, Bob (NIH/NCI) [C]

: I'll be checking in changes to PublishPreview.py some time today (assuming I can ever get it to talk to me on DEV - it's taking forever). I see there's a diff between what's in Curie and what's in the CGI directory:

--- PublishPreview.py   2015-06-17 14:41:27.803847200 -0400
+++ d:\Inetpub\wwwroot\cgi-bin\cdr/PublishPreview.py    2015-06-11 12:12:43.170937300 -0400
@@ -1,6 +1,6 @@
 #----------------------------------------------------------------------
 #
-# $Id: PublishPreview.py 13191 2015-06-17 17:40:01Z bkline $
+# $Id: PublishPreview.py 13175 2015-05-29 18:03:10Z bkline $
 #
 # Transform a CDR document using an XSL/T filter and send it back to
 # the browser.
@@ -287,7 +287,8 @@
     # Modify SummaryRef links
     # These links are identified by the inlinetype attribute
     # ------------------------------------------------------
-    for x in myHtml.xpath('//a[@inlinetype="SummaryRef"]'):
+    #for x in myHtml.xpath('//a[@inlinetype="SummaryRef"]'):
+    for x in myHtml.xpath('//a[@objectid]'):
         # The SummaryRef links don't contain an href attribute
         # because Percussion isn't able to add this to the PP
         # output.  Without the href attribute the text is not

Is that a change that needs to be preserved?

Comment entered 2015-06-17 17:15:54 by Englisch, Volker (NIH/NCI) [C]

Yes, it's already in my Curie sandbox and will hopefully be committed before I go home, I hope it doesn't create a conflict with your changes.

Would you like me to commit it right away?

Comment entered 2015-06-17 17:17:56 by Kline, Bob (NIH/NCI) [C]

I think you've got plenty of time, given how long it's taking me to get PublishPreview to do its thing. :-)

Comment entered 2015-06-18 11:46:11 by Englisch, Volker (NIH/NCI) [C]

The following program has been saved to subversion:

  • R13204: PublishPreview.py

Comment entered 2015-06-22 13:34:56 by Juthe, Robin (NIH/NCI) [E]

Summary Frag Refs are working well on QA so far. However, clicking "back" after clicking on a summary fragment ref brings us to the top of the summary rather than where we were when we clicked the link. We reported the same problem on Cancer.gov during the initial NVCG testing and I think it was determined that this is a Javascript problem.

Comment entered 2015-06-23 08:50:53 by Juthe, Robin (NIH/NCI) [E]

Just wanted to note that summary frag refs to a specific section of a different summary are working and the back button will take you back where you began.

Comment entered 2015-06-25 09:33:46 by Juthe, Robin (NIH/NCI) [E]

Verified on QA.

Looks like the problem with the back button bringing you to the wrong place is being tracked in the WCMS project, specifically OCEPROJECT-3114.

Comment entered 2015-09-04 13:13:16 by Englisch, Volker (NIH/NCI) [C]

Please verify on PROD and close this issue.

Comment entered 2015-09-04 13:23:00 by Osei-Poku, William (NIH/NCI) [C]

This is verified for the most part. We just need time to do more testing.

Comment entered 2015-09-17 12:26:15 by Juthe, Robin (NIH/NCI) [E]

Summary Frag Refs seem to be working OK for me. William, do you think we can close this issue?

Comment entered 2015-09-17 12:37:00 by Osei-Poku, William (NIH/NCI) [C]

Yes, we can close this issue. Thanks!

Elapsed: 0:00:00.001611