Bug 802683 - Local instance path is text/plain
Local instance path is text/plain
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: yawn (Show other bugs)
rawhide
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Vitezslav Crhonek
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-03-13 05:38 EDT by Jan Safranek
Modified: 2012-03-13 07:51 EDT (History)
1 user (show)

See Also:
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 07:51:46 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
proposed patch (540 bytes, text/plain)
2012-03-13 05:38 EDT, Jan Safranek
no flags Details

  None (edit)
Description Jan Safranek 2012-03-13 05:38:51 EDT
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 07:51:46 EDT
Thanks, looks fine, applied.

Note You need to log in before you can comment on or make changes to this bug.