Bug 802683

Summary: Local instance path is text/plain
Product: [Fedora] Fedora Reporter: Jan Safranek <jsafrane>
Component: yawnAssignee: Vitezslav Crhonek <vcrhonek>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: vcrhonek
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: yawn-0-0.3.20120227svn561.fc18 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-13 11:51:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
proposed patch none

Description Jan Safranek 2012-03-13 09:38:51 UTC
Created attachment 569614 [details]
proposed patch

Description of problem:
http://localhost/yawn/Pickle method sets Content-type: text/plain instead of text/html.

Version-Release number of selected component (if applicable):
yawn.noarch-0-0.2.20120227svn561.fc18

How reproducible:
always

Steps to Reproduce:
1. go to instance of any class
2. click "Get the LocalInstancePath for use as a Method Reference Parameter" link at the bottom

  
Actual results:
raw HTML output:
<html><head><title>YAWN: CIM Object</title></head><body link="#0000ff" ><table border=0 cellpadding=0 cellspacing=0 vspace=0><tr><td nowrap width=100% valign=top><h1>Object Serialization</h1></td><td valign=top nowrap align=right><font size=-1><i><a href="Logout">Logout &gt;&gt;</a></i></td></tr></table><p><i>To pass the following object as a Parameter Reference to a method call, copy this string to your clipboard and paste it to the parameter field.</i><p><hr>eJx1kEFOwzAQRUMJLUkBCZVDlE0RXMEIqVJJkSpL2UWOM6KG2M7ETksWkWCTc+NYhQUVuz/fM2++53PEq3afg1xwITOdv8Vk+bxUxjLFIWESYjy5/cJRh6dzGvGSGaOci2E6C4LgZU2yleasfBIlbFpjQeIZnb5DmwtVCPVqcPyXn7h+A4+C2xgnDn3eYUTDglmGcYfTeTp2YO63eEk2Q4x04mTN9ltRQJ+GrvANg0h+xK5g9316PYzXwKzQ6jevd8nBJYPrp/75Q+8fuDnGzHygY9CN81dCNR8Z0bJqLNQHUmNyGm61sXiR0GhgmIpxwEsa11rbO3eV3QNeNfniG2uEflw=<hr><p><pre>&lt;LOCALINSTANCEPATH&gt;
	&lt;LOCALNAMESPACEPATH&gt;
		&lt;NAMESPACE NAME="root"/&gt;
		&lt;NAMESPACE NAME="cimv2"/&gt;

....

Expected results:
nicely formatted HTML page

Comment 2 Vitezslav Crhonek 2012-03-13 11:51:46 UTC
Thanks, looks fine, applied.