Tags:
create new tag
view all tags

SID-01922: Downloading Wiki attachment from an application not working

Status: Answered Answered TWiki version: 5.0.1 Perl version: 5.8
Category: CategoryAPI Server OS: RedHat Linux 4.1.2 -48,kernel-2.6.18-371.6.1.el5.x86_64.rpm Last update: 11 years ago

How can I make an attachment accessible from an application to download instead of a web browser. When trying to access it either using http or https, i an getting an error (403:Forbidden)

Here is the C# code that I used,

          WebClient wc = new WebClient();
          wc.UseDefaultCredentials = true;  
          wc.DownloadFile("http://twiki.inside.nsn.com/pub/LTEPerformance_Tools/WebHome/ltepat.xml", "ltepat.xml");

the code fails with error code 403:Forbidden

Your help will be much appreciated

-- Sriharsha Panja - 2014-05-09

Discussion and Answer

The user agent of your web client is likely banned by an apache rule. Ask your TWiki admin to have your user agent signature added to the allow list, or specify a user agent of a popular browser in your web client.

-- Peter Thoeny - 2014-05-09

Hello Peter,

Can you please help me out. with the below issue.

when ever when i am trying to save the wiki i m getting the below error.

Error saving topic During save of FlexiNSNS30openpronto an error was found by the version control system. Please notify your TWiki administrator.

RCS: /usr/bin/rcs -l %FILENAME|F% failed:

Go back in your browser and save your changes locally.

Your help will be much appreciated.

-- Sriharsha Panja - 2014-11-26

This is a different issue, best to open a new question.

Check the file ownership of the twiki/data and twiki/pub directories and files in it, recursively.

-- Peter Thoeny - 2014-11-26

Both pub and data are having the same rights..

drwxr-xr-x 115 cwiki01 cwiki01 12288 Nov 1 10:32 data

drwxr-xr-x 119 cwiki01 cwiki01 4096 Sep 19 16:44 pub

-- Sriharsha Panja - 2014-11-27

Is cwiki01 your webserver user?

-- Peter Thoeny - 2014-11-28

Yes, Cwiki is our webserver

However, i found the solution.

The issue is with semaphore files which are not allowing the wiki to save and generate revisions.

Check the semaphore files if present or not in the precise directory (semaphores start with “, filename,”) ls –lrt ,*,

If you find them delete them. rm- fr ‘,filename,’

and then try to save the wiki it wont show this error.

-- Sriharsha Panja - 2014-12-02

      Change status to:
ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
SupportForm
Status Answered
Title Downloading Wiki attachment from an application not working
SupportCategory CategoryAPI
TWiki version 5.0.1
Server OS RedHat Linux 4.1.2 -48,kernel-2.6.18-371.6.1.el5.x86_64.rpm
Web server Apache/2.2.3
Perl version 5.8
Browser & version IE 8 and above
Edit | Attach | Watch | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r7 - 2014-12-02 - SriharshaPanja
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.