SID-01922: Downloading Wiki attachment from an application not working
| Status: |
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
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.